Package org.bouncycastle.crypto.fips
Class FipsAgreement<T extends Parameters>
- java.lang.Object
-
- org.bouncycastle.crypto.fips.FipsAgreement<T>
-
- Type Parameters:
T
- the parameters type associated with the final implementation of this key agreement.
- All Implemented Interfaces:
Agreement<T>
public abstract class FipsAgreement<T extends Parameters> extends java.lang.Object implements Agreement<T>
Base class for the FIPS approved mode Agreement implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract byte[]
calculate(AsymmetricPublicKey key)
Calculate the agreement using the passed in public key.abstract T
getParameters()
Return the parameters being used by this agreement.
-
-
-
Method Detail
-
getParameters
public abstract T getParameters()
Description copied from interface:Agreement
Return the parameters being used by this agreement.- Specified by:
getParameters
in interfaceAgreement<T extends Parameters>
- Returns:
- the key agreement parameters.
-
calculate
public abstract byte[] calculate(AsymmetricPublicKey key)
Description copied from interface:Agreement
Calculate the agreement using the passed in public key.- Specified by:
calculate
in interfaceAgreement<T extends Parameters>
- Parameters:
key
- the public key of the other party.- Returns:
- the agreement value.
-
-