| Modifier and Type | Class and Description |
|---|---|
| public static class | PQCOtherInfoGenerator.
Party U (initiator) generation. |
| public static class | PQCOtherInfoGenerator.
Party V (responder) generation. |
| Modifier and Type | Field and Description |
|---|---|
| protected final KEMParameters | |
| protected final DEROtherInfo. | |
| protected final SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | PQCOtherInfoGenerator(KEMParameters
the PQC KEM parameters to use. kemParameters, AlgorithmIdentifier the algorithm associated with this invocation of the KDF. algorithmID, byte[] sender party info. partyUInfo, byte[] receiver party info. partyVInfo, SecureRandom a source of randomness. random)Create a basic builder with just the compulsory fields. |
| kemParameters | back to summary |
|---|---|
| protected final KEMParameters kemParameters | |
| otherInfoBuilder | back to summary |
|---|---|
| protected final DEROtherInfo. | |
| random | back to summary |
|---|---|
| protected final SecureRandom random | |
| PQCOtherInfoGenerator | back to summary |
|---|---|
| public PQCOtherInfoGenerator(KEMParameters kemParameters, AlgorithmIdentifier algorithmID, byte[] partyUInfo, byte[] partyVInfo, SecureRandom random) Create a basic builder with just the compulsory fields.
| |
| Modifier and Type | Field and Description |
|---|---|
| private AsymmetricCipherKeyPair | |
| private EncapsulatedSecretExtractor |
| Access | Constructor and Description |
|---|---|
| public | PartyU(KEMParameters kemParameters, AlgorithmIdentifier algorithmID, byte[] partyUInfo, byte[] partyVInfo, SecureRandom random)
|
| Modifier and Type | Method and Description |
|---|---|
| public DEROtherInfo | generate(byte[]
an encrypted packet suppPrivInfoPartB)Generate the OtherInfo decrypting the contents of suppPrivInfoPartB and putting it in the suppPrivInfo field of the OtherInfo structure. |
| public byte[] | |
| public PQCOtherInfoGenerator | Returns: the current builder instance.supplementary public info. suppPubInfo)Add optional supplementary public info (DER tagged, implicit, 0). |
| aKp | back to summary |
|---|---|
| private AsymmetricCipherKeyPair aKp | |
| extractor | back to summary |
|---|---|
| private EncapsulatedSecretExtractor extractor | |
| PartyU | back to summary |
|---|---|
| public PartyU(KEMParameters kemParameters, AlgorithmIdentifier algorithmID, byte[] partyUInfo, byte[] partyVInfo, SecureRandom random) | |
| generate | back to summary |
|---|---|
| public DEROtherInfo generate(byte[] suppPrivInfoPartB) Generate the OtherInfo decrypting the contents of suppPrivInfoPartB and putting it in the suppPrivInfo field of the OtherInfo structure.
| |
| getSuppPrivInfoPartA | back to summary |
|---|---|
| public byte[] getSuppPrivInfoPartA() Return the part A information (Party U's public key).
| |
| withSuppPubInfo | back to summary |
|---|---|
| public PQCOtherInfoGenerator withSuppPubInfo(byte[] suppPubInfo) Add optional supplementary public info (DER tagged, implicit, 0).
| |
| Modifier and Type | Field and Description |
|---|---|
| private SecretWithEncapsulationImpl |
| Access | Constructor and Description |
|---|---|
| public | PartyV(KEMParameters kemParameters, AlgorithmIdentifier algorithmID, byte[] partyUInfo, byte[] partyVInfo, SecureRandom random)
|
| Modifier and Type | Method and Description |
|---|---|
| public DEROtherInfo | |
| public byte[] | Returns: an encrypted secret.encoding of Party U's public key. suppPrivInfoPartA)Return the part B information - a secret encrypted using the encoded public key passed in suppPrivInfoPartA. |
| public PQCOtherInfoGenerator | Returns: the current builder instance.supplementary public info. suppPubInfo)Add optional supplementary public info (DER tagged, implicit, 0). |
| secretWithEncapsulation | back to summary |
|---|---|
| private SecretWithEncapsulationImpl secretWithEncapsulation | |
| PartyV | back to summary |
|---|---|
| public PartyV(KEMParameters kemParameters, AlgorithmIdentifier algorithmID, byte[] partyUInfo, byte[] partyVInfo, SecureRandom random) | |
| generate | back to summary |
|---|---|
| public DEROtherInfo generate() | |
| getSuppPrivInfoPartB | back to summary |
|---|---|
| public byte[] getSuppPrivInfoPartB(byte[] suppPrivInfoPartA) Return the part B information - a secret encrypted using the encoded public key passed in suppPrivInfoPartA.
| |
| withSuppPubInfo | back to summary |
|---|---|
| public PQCOtherInfoGenerator withSuppPubInfo(byte[] suppPubInfo) Add optional supplementary public info (DER tagged, implicit, 0).
| |