Top Description Fields Constructors Methods
org.bouncycastle.pqc.crypto

public Class ExchangePair

extends Object
Class Inheritance
Imports
org.bouncycastle.crypto.params.AsymmetricKeyParameter, org.bouncycastle.util.Arrays

Pair for a value exchange algorithm where the responding party has no private key, such as NewHope.

Field Summary

Modifier and TypeField and Description
private final AsymmetricKeyParameter
private final byte[]

Constructor Summary

AccessConstructor and Description
public
ExchangePair(AsymmetricKeyParameter
The responding party's public key.
publicKey
,
byte[]
the calculated shared value.
shared
)

Base constructor.

Method Summary

Modifier and TypeMethod and Description
public AsymmetricKeyParameter

Returns:

the public key calculated for the exchange.
getPublicKey
()

Return the responding party's public key.

public byte[]

Returns:

the shared value.
getSharedValue
()

Return the shared value calculated with public key.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

publicKeyback to summary
private final AsymmetricKeyParameter publicKey
sharedback to summary
private final byte[] shared

Constructor Detail

ExchangePairback to summary
public ExchangePair(AsymmetricKeyParameter publicKey, byte[] shared)

Base constructor.

Parameters
publicKey:AsymmetricKeyParameter

The responding party's public key.

shared:byte[]

the calculated shared value.

Method Detail

getPublicKeyback to summary
public AsymmetricKeyParameter getPublicKey()

Return the responding party's public key.

Returns:AsymmetricKeyParameter

the public key calculated for the exchange.

getSharedValueback to summary
public byte[] getSharedValue()

Return the shared value calculated with public key.

Returns:byte[]

the shared value.