Class NHOtherInfoGenerator
java.lang.Object
org.bouncycastle.pqc.crypto.newhope.NHOtherInfoGenerator
- Direct Known Subclasses:
NHOtherInfoGenerator.PartyU
,NHOtherInfoGenerator.PartyV
OtherInfo Generator for which can be used for populating the SuppPrivInfo field used to provide shared
secret data used with NIST SP 800-56A agreement algorithms.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Party U (initiator) generation.static class
Party V (responder) generation. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DEROtherInfo.Builder
protected final SecureRandom
protected boolean
-
Constructor Summary
ConstructorsConstructorDescriptionNHOtherInfoGenerator
(AlgorithmIdentifier algorithmID, byte[] partyUInfo, byte[] partyVInfo, SecureRandom random) Create a basic builder with just the compulsory fields. -
Method Summary
-
Field Details
-
otherInfoBuilder
-
random
-
used
protected boolean used
-
-
Constructor Details
-
NHOtherInfoGenerator
public NHOtherInfoGenerator(AlgorithmIdentifier algorithmID, byte[] partyUInfo, byte[] partyVInfo, SecureRandom random) Create a basic builder with just the compulsory fields.- Parameters:
algorithmID
- the algorithm associated with this invocation of the KDF.partyUInfo
- sender party info.partyVInfo
- receiver party info.random
- a source of randomness.
-