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.X25519withSHA256HKDF |
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.X448withSHA512HKDF |
static class |
KeyAgreementSpi.X448withSHA512KDF |
static class |
KeyAgreementSpi.XDH |
kaAlgorithm, kdf, ukmParameters, ukmParametersSalt
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, trimZeroes
protected byte[] doCalcSecret()
doCalcSecret
in class BaseAgreementSpi
protected 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 BaseAgreementSpi
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
protected java.security.Key engineDoPhase(java.security.Key key, boolean lastPhase) throws java.security.InvalidKeyException, java.lang.IllegalStateException
engineDoPhase
in class javax.crypto.KeyAgreementSpi
java.security.InvalidKeyException
java.lang.IllegalStateException