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.X25519withSHA256KDF,KeyAgreementSpi.X25519withSHA384CKDF,KeyAgreementSpi.X25519withSHA512CKDF,KeyAgreementSpi.X448,KeyAgreementSpi.X448UwithSHA512CKDF,KeyAgreementSpi.X448UwithSHA512KDF,KeyAgreementSpi.X448withSHA256CKDF,KeyAgreementSpi.X448withSHA384CKDF,KeyAgreementSpi.X448withSHA512CKDF,KeyAgreementSpi.X448withSHA512KDF,KeyAgreementSpi.XDH
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classstatic classstatic final classstatic final classstatic classstatic classstatic final classstatic classstatic classstatic final classstatic classstatic final classstatic final classstatic final class -
Field Summary
Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
kaAlgorithm, kdf, ukmParameters -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]protected KeyengineDoPhase(Key key, boolean lastPhase) protected voidengineInit(Key key, SecureRandom secureRandom) protected voidengineInit(Key key, AlgorithmParameterSpec params, SecureRandom secureRandom) Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
engineGenerateSecret, engineGenerateSecret, engineGenerateSecret, getAlgorithm, getKeySize, trimZeroes
-
Method Details
-
calcSecret
protected byte[] calcSecret()- Specified by:
calcSecretin classBaseAgreementSpi
-
engineInit
- Specified by:
engineInitin classKeyAgreementSpi- Throws:
InvalidKeyException
-
engineInit
protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom secureRandom) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
engineInitin classKeyAgreementSpi- Throws:
InvalidKeyExceptionInvalidAlgorithmParameterException
-
engineDoPhase
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException - Specified by:
engineDoPhasein classKeyAgreementSpi- Throws:
InvalidKeyExceptionIllegalStateException
-