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 TReturn the parameters being used by this agreement.
-
Method Details
-
getParameters
Description copied from interface:AgreementReturn the parameters being used by this agreement.- Specified by:
getParametersin interfaceAgreement<T extends Parameters>- Returns:
- the key agreement parameters.
-
calculate
Description copied from interface:AgreementCalculate the agreement using the passed in public key.- Specified by:
calculatein interfaceAgreement<T extends Parameters>- Parameters:
key- the public key of the other party.- Returns:
- the agreement value.
-