Top Description Methods
org.bouncycastle.crypto

public Interface Agreement<T extends Parameters>

Known Direct Implementers
org.bouncycastle.crypto.fips.FipsAgreement
Type Parameters
<T>
the parameters class for the particular version.

Basic interface for key agreement implementations.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the agreement value.
calculate
(AsymmetricPublicKey
the public key of the other party.
key
)

Calculate the agreement using the passed in public key.

public T

Returns:

the key agreement parameters.
getParameters
()

Return the parameters being used by this agreement.

Method Detail

calculateback to summary
public byte[] calculate(AsymmetricPublicKey key)

Calculate the agreement using the passed in public key.

Parameters
key:AsymmetricPublicKey

the public key of the other party.

Returns:byte[]

the agreement value.

getParametersback to summary
public T getParameters()

Return the parameters being used by this agreement.

Returns:T

the key agreement parameters.