Package org.bouncycastle.crypto
Interface Agreement<T extends Parameters>
-
- Type Parameters:
T
- the parameters class for the particular version.
- All Known Implementing Classes:
FipsAgreement
public interface Agreement<T extends Parameters>
Basic interface for key agreement implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
calculate(AsymmetricPublicKey key)
Calculate the agreement using the passed in public key.T
getParameters()
Return the parameters being used by this agreement.
-
-
-
Method Detail
-
getParameters
T getParameters()
Return the parameters being used by this agreement.- Returns:
- the key agreement parameters.
-
calculate
byte[] calculate(AsymmetricPublicKey key)
Calculate the agreement using the passed in public key.- Parameters:
key
- the public key of the other party.- Returns:
- the agreement value.
-
-