Class KeyAgreementSpi
java.lang.Object
javax.crypto.KeyAgreementSpi
org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
org.bouncycastle.jcajce.provider.asymmetric.edec.KeyAgreementSpi
- Direct Known Subclasses:
KeyAgreementSpi.X25519,KeyAgreementSpi.X25519UwithSHA256CKDF,KeyAgreementSpi.X25519UwithSHA256KDF,KeyAgreementSpi.X25519withSHA256CKDF,KeyAgreementSpi.X25519withSHA256HKDF,KeyAgreementSpi.X25519withSHA256KDF,KeyAgreementSpi.X25519withSHA384CKDF,KeyAgreementSpi.X25519withSHA512CKDF,KeyAgreementSpi.X448,KeyAgreementSpi.X448UwithSHA512CKDF,KeyAgreementSpi.X448UwithSHA512KDF,KeyAgreementSpi.X448withSHA256CKDF,KeyAgreementSpi.X448withSHA384CKDF,KeyAgreementSpi.X448withSHA512CKDF,KeyAgreementSpi.X448withSHA512HKDF,KeyAgreementSpi.X448withSHA512KDF,KeyAgreementSpi.XDH
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classstatic classstatic final classstatic final classstatic final classstatic classstatic classstatic final classstatic classstatic classstatic final classstatic classstatic final classstatic final classstatic final classstatic final class -
Field Summary
Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
kaAlgorithm, kdf, ukmParameters, ukmParametersSalt -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]protected voiddoInitFromKey(Key key, AlgorithmParameterSpec params, SecureRandom secureRandom) protected KeyengineDoPhase(Key key, boolean lastPhase) Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
engineGenerateSecret, engineGenerateSecret, engineGenerateSecret, engineInit, engineInit, getAlgorithm, getKeySize, trimZeroes
-
Method Details
-
doCalcSecret
protected byte[] doCalcSecret()- Specified by:
doCalcSecretin classBaseAgreementSpi
-
doInitFromKey
protected void doInitFromKey(Key key, AlgorithmParameterSpec params, SecureRandom secureRandom) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
doInitFromKeyin classBaseAgreementSpi- Throws:
InvalidKeyExceptionInvalidAlgorithmParameterException
-
engineDoPhase
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException - Specified by:
engineDoPhasein classKeyAgreementSpi- Throws:
InvalidKeyExceptionIllegalStateException
-