Package org.conscrypt
Class OpenSSLECDHKeyAgreement
- java.lang.Object
-
- javax.crypto.KeyAgreementSpi
-
- org.conscrypt.OpenSSLECDHKeyAgreement
-
@Internal public final class OpenSSLECDHKeyAgreement extends KeyAgreementSpi
Elliptic Curve Diffie-Hellman key agreement backed by the OpenSSL engine.
-
-
Constructor Summary
Constructors Constructor Description OpenSSLECDHKeyAgreement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyengineDoPhase(Key key, boolean lastPhase)protected byte[]engineGenerateSecret()protected intengineGenerateSecret(byte[] sharedSecret, int offset)protected SecretKeyengineGenerateSecret(String algorithm)protected voidengineInit(Key key, SecureRandom random)protected voidengineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)
-
-
-
Method Detail
-
engineDoPhase
public Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException
- Specified by:
engineDoPhasein classKeyAgreementSpi- Throws:
InvalidKeyException
-
engineGenerateSecret
protected int engineGenerateSecret(byte[] sharedSecret, int offset) throws ShortBufferException- Specified by:
engineGenerateSecretin classKeyAgreementSpi- Throws:
ShortBufferException
-
engineGenerateSecret
protected byte[] engineGenerateSecret()
- Specified by:
engineGenerateSecretin classKeyAgreementSpi
-
engineGenerateSecret
protected SecretKey engineGenerateSecret(String algorithm)
- Specified by:
engineGenerateSecretin classKeyAgreementSpi
-
engineInit
protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException
- 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
-
-