Class KeyAgreementSpi
java.lang.Object
javax.crypto.KeyAgreementSpi
org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
org.bouncycastle.jcajce.provider.asymmetric.ecgost12.KeyAgreementSpi
- Direct Known Subclasses:
KeyAgreementSpi.ECVKO256,KeyAgreementSpi.ECVKO512
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
kdf, ukmParameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedKeyAgreementSpi(String kaAlgorithm, ECVKOAgreement agreement, DerivationFunction kdf) -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]protected KeyengineDoPhase(Key key, boolean lastPhase) protected voidengineInit(Key key, SecureRandom random) protected voidengineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
engineGenerateSecret, engineGenerateSecret, engineGenerateSecret, getAlgorithm, getKeySize, trimZeroes
-
Constructor Details
-
KeyAgreementSpi
-
-
Method Details
-
engineDoPhase
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException - Specified by:
engineDoPhasein classKeyAgreementSpi- Throws:
InvalidKeyExceptionIllegalStateException
-
engineInit
protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
engineInitin classKeyAgreementSpi- Throws:
InvalidKeyExceptionInvalidAlgorithmParameterException
-
engineInit
- Specified by:
engineInitin classKeyAgreementSpi- Throws:
InvalidKeyException
-
calcSecret
protected byte[] calcSecret()- Specified by:
calcSecretin classBaseAgreementSpi
-