Package org.bouncycastle.pqc.crypto
Class ExchangePair
java.lang.Object
org.bouncycastle.pqc.crypto.ExchangePair
Pair for a value exchange algorithm where the responding party has no private key, such as NewHope.
-
Constructor Summary
ConstructorsConstructorDescriptionExchangePair
(AsymmetricKeyParameter publicKey, byte[] shared) Base constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturn the responding party's public key.byte[]
Return the shared value calculated with public key.
-
Constructor Details
-
ExchangePair
Base constructor.- Parameters:
publicKey
- The responding party's public key.shared
- the calculated shared value.
-
-
Method Details
-
getPublicKey
Return the responding party's public key.- Returns:
- the public key calculated for the exchange.
-