public class KeyAgreementSpi extends BaseAgreementSpi
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyAgreementSpi.X25519 |
static class |
KeyAgreementSpi.X25519UwithSHA256CKDF |
static class |
KeyAgreementSpi.X25519UwithSHA256KDF |
static class |
KeyAgreementSpi.X25519withSHA256CKDF |
static class |
KeyAgreementSpi.X25519withSHA256KDF |
static class |
KeyAgreementSpi.X25519withSHA384CKDF |
static class |
KeyAgreementSpi.X25519withSHA512CKDF |
static class |
KeyAgreementSpi.X448 |
static class |
KeyAgreementSpi.X448UwithSHA512CKDF |
static class |
KeyAgreementSpi.X448UwithSHA512KDF |
static class |
KeyAgreementSpi.X448withSHA256CKDF |
static class |
KeyAgreementSpi.X448withSHA384CKDF |
static class |
KeyAgreementSpi.X448withSHA512CKDF |
static class |
KeyAgreementSpi.X448withSHA512KDF |
static class |
KeyAgreementSpi.XDH |
kaAlgorithm, kdf, ukmParameters| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
calcSecret() |
protected java.security.Key |
engineDoPhase(java.security.Key key,
boolean lastPhase) |
protected void |
engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom secureRandom) |
protected void |
engineInit(java.security.Key key,
java.security.SecureRandom secureRandom) |
engineGenerateSecret, engineGenerateSecret, engineGenerateSecret, getAlgorithm, getKeySize, trimZeroesprotected byte[] calcSecret()
calcSecret in class BaseAgreementSpiprotected void engineInit(java.security.Key key,
java.security.SecureRandom secureRandom)
throws java.security.InvalidKeyException
engineInit in class javax.crypto.KeyAgreementSpijava.security.InvalidKeyExceptionprotected void engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom secureRandom)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
engineInit in class javax.crypto.KeyAgreementSpijava.security.InvalidKeyExceptionjava.security.InvalidAlgorithmParameterExceptionprotected java.security.Key engineDoPhase(java.security.Key key,
boolean lastPhase)
throws java.security.InvalidKeyException,
java.lang.IllegalStateException
engineDoPhase in class javax.crypto.KeyAgreementSpijava.security.InvalidKeyExceptionjava.lang.IllegalStateException