public static class PQCOtherInfoGenerator.PartyV extends PQCOtherInfoGenerator
PQCOtherInfoGenerator.PartyU, PQCOtherInfoGenerator.PartyV
otherInfoBuilder, random, used
Constructor and Description |
---|
PartyV(KEMParameters kemParams,
AlgorithmIdentifier algorithmID,
byte[] partyUInfo,
byte[] partyVInfo,
java.security.SecureRandom random)
Create a basic builder with just the compulsory fields for the responder.
|
Modifier and Type | Method and Description |
---|---|
DEROtherInfo |
generate() |
byte[] |
getSuppPrivInfoPartB(byte[] suppPrivInfoPartA) |
PQCOtherInfoGenerator |
withSuppPubInfo(byte[] suppPubInfo)
Add optional supplementary public info (DER tagged, implicit, 0).
|
public PartyV(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[] getSuppPrivInfoPartB(byte[] suppPrivInfoPartA)
public DEROtherInfo generate()