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

pack-priv Class ExchangePair

extends Object
Class Inheritance
Imports
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 Object
private final byte[]

Constructor Summary

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

Base constructor.

Method Summary

Modifier and TypeMethod and Description
public Object

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 Object publicKey
sharedback to summary
private final byte[] shared

Constructor Detail

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

Base constructor.

Parameters
publicKey:Object

The responding party's public key.

shared:byte[]

the calculated shared value.

Method Detail

getPublicKeyback to summary
public Object getPublicKey()

Return the responding party's public key.

Returns:Object

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.