public final class ECDHKeyAgreement extends KeyAgreementSpi
References: [1] Institute of Electrical and Electronics Engineers (IEEE), Specifications for Public-Key Cryptography, IEEE Standard 1363-2000, August 2000
[2] Institute of Electrical and Electronics Engineers (IEEE), Specifications for Public-Key Cryptography - Amendment 1: Additional Techniques, IEEE Standard 1363a-2004, October 2004
ECDHWithCofactorKeyAgreement
,
ECDHParameterSpec
Constructor and Description |
---|
ECDHKeyAgreement()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected Key |
engineDoPhase(Key key,
boolean lastPhase) |
protected byte[] |
engineGenerateSecret() |
protected int |
engineGenerateSecret(byte[] sharedSecret,
int offset) |
protected SecretKey |
engineGenerateSecret(String algorithm) |
protected void |
engineInit(Key key,
AlgorithmParameterSpec params,
SecureRandom random) |
protected void |
engineInit(Key key,
SecureRandom random) |
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException
engineDoPhase
in class KeyAgreementSpi
InvalidKeyException
IllegalStateException
protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException
engineInit
in class KeyAgreementSpi
InvalidKeyException
protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit
in class KeyAgreementSpi
InvalidKeyException
InvalidAlgorithmParameterException
protected byte[] engineGenerateSecret() throws IllegalStateException
engineGenerateSecret
in class KeyAgreementSpi
IllegalStateException
protected int engineGenerateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException
engineGenerateSecret
in class KeyAgreementSpi
IllegalStateException
ShortBufferException
protected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, InvalidKeyException
engineGenerateSecret
in class KeyAgreementSpi
IllegalStateException
InvalidKeyException
Copyright © 2011–2022 Stiftung SIC. All rights reserved.