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>
Base class for the FIPS approved mode Agreement implementations.
-
Method Summary
Modifier and TypeMethodDescriptionabstract byte[]
Calculate the agreement using the passed in public key.abstract T
Return the parameters being used by this agreement.
-
Method Details
-
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
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.
-