Package org.conscrypt
Class OpenSSLECDHKeyAgreement
java.lang.Object
javax.crypto.KeyAgreementSpi
org.conscrypt.OpenSSLECDHKeyAgreement
Elliptic Curve Diffie-Hellman key agreement backed by the OpenSSL engine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionengineDoPhase(Key key, boolean lastPhase) protected byte[]protected intengineGenerateSecret(byte[] sharedSecret, int offset) protected SecretKeyengineGenerateSecret(String algorithm) protected voidengineInit(Key key, SecureRandom random) protected voidengineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)
-
Constructor Details
-
OpenSSLECDHKeyAgreement
public OpenSSLECDHKeyAgreement()
-
-
Method Details
-
engineDoPhase
- Specified by:
engineDoPhasein classKeyAgreementSpi- Throws:
InvalidKeyException
-
engineGenerateSecret
- Specified by:
engineGenerateSecretin classKeyAgreementSpi- Throws:
ShortBufferException
-
engineGenerateSecret
protected byte[] engineGenerateSecret()- Specified by:
engineGenerateSecretin classKeyAgreementSpi
-
engineGenerateSecret
- Specified by:
engineGenerateSecretin classKeyAgreementSpi
-
engineInit
- Specified by:
engineInitin classKeyAgreementSpi- Throws:
InvalidKeyException
-
engineInit
protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
engineInitin classKeyAgreementSpi- Throws:
InvalidKeyExceptionInvalidAlgorithmParameterException
-