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[] |
doCalcSecret() |
protected void |
doInitFromKey(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom secureRandom) |
protected java.security.Key |
engineDoPhase(java.security.Key key,
boolean lastPhase) |
engineGenerateSecret, engineGenerateSecret, engineGenerateSecret, engineInit, engineInit, getAlgorithm, getKeySize, trimZeroesprotected byte[] doCalcSecret()
doCalcSecret in class BaseAgreementSpiprotected void doInitFromKey(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom secureRandom)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
doInitFromKey in class BaseAgreementSpijava.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