public final class EdDHKeyAgreement extends KeyAgreementSpi
References:
[1] A. Langley, M. Hamburg. RFC 7748: Elliptic Curves for Security. https://tools.ietf.org/html/rfc7748
[2] S. Josefsson, J. Schaad. Algorithm Identifiers for Ed25519, Ed448, X25519 and X448 for use in the Internet X.509 Public Key Infrastructure. https://tools.ietf.org/html/draft-ietf-curdle-pkix-10
| Constructor and Description |
|---|
EdDHKeyAgreement()
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 KeyAgreementSpiInvalidKeyExceptionIllegalStateExceptionprotected void engineInit(Key key, SecureRandom random) throws InvalidKeyException
engineInit in class KeyAgreementSpiInvalidKeyExceptionprotected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit in class KeyAgreementSpiInvalidKeyExceptionInvalidAlgorithmParameterExceptionprotected byte[] engineGenerateSecret()
throws IllegalStateException
engineGenerateSecret in class KeyAgreementSpiIllegalStateExceptionprotected int engineGenerateSecret(byte[] sharedSecret,
int offset)
throws IllegalStateException,
ShortBufferException
engineGenerateSecret in class KeyAgreementSpiIllegalStateExceptionShortBufferExceptionprotected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, InvalidKeyException
engineGenerateSecret in class KeyAgreementSpiIllegalStateExceptionInvalidKeyExceptionCopyright © 2011–2022 Stiftung SIC. All rights reserved.