Top Fields Constructors Methods
org.bouncycastle.crypto.fips

pack-priv Class EcDHAgreement<T extends FipsAgreementParameters>

extends FipsAgreement<T extends FipsAgreementParameters>
Class Inheritance
Imports
java.math.BigInteger, org.bouncycastle.crypto.AsymmetricPublicKey, org.bouncycastle.crypto.asymmetric.AsymmetricECPublicKey, .ECDomainParameters, .NamedECDomainParameters, org.bouncycastle.crypto.internal.BasicAgreement, org.bouncycastle.crypto.internal.params.EcDomainParameters, .EcMqvPublicParameters, .EcNamedDomainParameters, .EcPublicKeyParameters, org.bouncycastle.util.BigIntegers

Field Summary

Modifier and TypeField and Description
private final BasicAgreement
private final T

Constructor Summary

AccessConstructor and Description
pack-priv
EcDHAgreement(BasicAgreement dh, T parameter)

Method Summary

Modifier and TypeMethod and Description
public byte[]
calculate(AsymmetricPublicKey
the public key of the other party.
key
)

Implements abstract org.bouncycastle.crypto.fips.FipsAgreement.calculate.

Implements org.bouncycastle.crypto.Agreement.calculate.

Calculate the agreement using the passed in public key.
private static EcDomainParameters
public T
getParameters()

Implements abstract org.bouncycastle.crypto.fips.FipsAgreement.getParameters.

Implements org.bouncycastle.crypto.Agreement.getParameters.

Return the parameters being used by this agreement.

Field Detail

dhback to summary
private final BasicAgreement dh
parameterback to summary
private final T parameter

Constructor Detail

EcDHAgreementback to summary
pack-priv EcDHAgreement(BasicAgreement dh, T parameter)

Method Detail

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

Implements abstract org.bouncycastle.crypto.fips.FipsAgreement.calculate.

Implements org.bouncycastle.crypto.Agreement.calculate.

Doc from org.bouncycastle.crypto.Agreement.calculate.

Calculate the agreement using the passed in public key.

Parameters
key:AsymmetricPublicKey

the public key of the other party.

Returns:byte[]

the agreement value.

Annotations
@Override
getDomainParamsback to summary
private static EcDomainParameters getDomainParams(ECDomainParameters curveParams)
getParametersback to summary
public T getParameters()

Implements abstract org.bouncycastle.crypto.fips.FipsAgreement.getParameters.

Implements org.bouncycastle.crypto.Agreement.getParameters.

Doc from org.bouncycastle.crypto.Agreement.getParameters.

Return the parameters being used by this agreement.

Returns:T

the key agreement parameters.

Annotations
@Override