Class NHExchangePairGenerator
- java.lang.Object
-
- org.bouncycastle.pqc.crypto.newhope.NHExchangePairGenerator
-
- All Implemented Interfaces:
ExchangePairGenerator
public class NHExchangePairGenerator extends java.lang.Object implements ExchangePairGenerator
-
-
Constructor Summary
Constructors Constructor Description NHExchangePairGenerator(java.security.SecureRandom random)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExchangePair
generateExchange(AsymmetricKeyParameter senderPublicKey)
Generate an exchange pair based on the sender public key.ExchangePair
GenerateExchange(AsymmetricKeyParameter senderPublicKey)
-
-
-
Method Detail
-
GenerateExchange
public ExchangePair GenerateExchange(AsymmetricKeyParameter senderPublicKey)
-
generateExchange
public ExchangePair generateExchange(AsymmetricKeyParameter senderPublicKey)
Description copied from interface:ExchangePairGenerator
Generate an exchange pair based on the sender public key.- Specified by:
generateExchange
in interfaceExchangePairGenerator
- Parameters:
senderPublicKey
- the public key of the exchange initiator.- Returns:
- An ExchangePair derived from the sender public key.
-
-