public static class PQCOtherInfoGenerator.PartyU extends PQCOtherInfoGenerator
PQCOtherInfoGenerator.PartyU, PQCOtherInfoGenerator.PartyV
otherInfoBuilder, random, used
Constructor and Description |
---|
PartyU(KEMParameters kemParams,
AlgorithmIdentifier algorithmID,
byte[] partyUInfo,
byte[] partyVInfo,
java.security.SecureRandom random)
Create a basic builder with just the compulsory fields for the initiator.
|
Modifier and Type | Method and Description |
---|---|
DEROtherInfo |
generate(byte[] suppPrivInfoPartB) |
byte[] |
getSuppPrivInfoPartA() |
PQCOtherInfoGenerator |
withSuppPubInfo(byte[] suppPubInfo)
Add optional supplementary public info (DER tagged, implicit, 0).
|
public PartyU(KEMParameters kemParams, AlgorithmIdentifier algorithmID, byte[] partyUInfo, byte[] partyVInfo, java.security.SecureRandom random)
kemParams
- the key type parameters for populating the private info field.algorithmID
- the algorithm associated with this invocation of the KDF.partyUInfo
- sender party info.partyVInfo
- receiver party info.random
- a source of randomness.public PQCOtherInfoGenerator withSuppPubInfo(byte[] suppPubInfo)
suppPubInfo
- supplementary public info.public byte[] getSuppPrivInfoPartA()
public DEROtherInfo generate(byte[] suppPrivInfoPartB)