Class NHOtherInfoGenerator
- java.lang.Object
-
- org.bouncycastle.pqc.crypto.newhope.NHOtherInfoGenerator
-
- Direct Known Subclasses:
NHOtherInfoGenerator.PartyU,NHOtherInfoGenerator.PartyV
public class NHOtherInfoGenerator extends java.lang.ObjectOtherInfo 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 Classes Modifier and Type Class Description static classNHOtherInfoGenerator.PartyUParty U (initiator) generation.static classNHOtherInfoGenerator.PartyVParty V (responder) generation.
-
Field Summary
Fields Modifier and Type Field Description protected DEROtherInfo.BuilderotherInfoBuilderprotected java.security.SecureRandomrandomprotected booleanused
-
Constructor Summary
Constructors Constructor Description NHOtherInfoGenerator(AlgorithmIdentifier algorithmID, byte[] partyUInfo, byte[] partyVInfo, java.security.SecureRandom random)Create a basic builder with just the compulsory fields.
-
-
-
Field Detail
-
otherInfoBuilder
protected final DEROtherInfo.Builder otherInfoBuilder
-
random
protected final java.security.SecureRandom random
-
used
protected boolean used
-
-
Constructor Detail
-
NHOtherInfoGenerator
public NHOtherInfoGenerator(AlgorithmIdentifier algorithmID, byte[] partyUInfo, byte[] partyVInfo, java.security.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.
-
-