Class KeyAgreementSpi
java.lang.Object
javax.crypto.KeyAgreementSpi
org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
org.bouncycastle.jcajce.provider.asymmetric.ecgost.KeyAgreementSpi
- Direct Known Subclasses:
KeyAgreementSpi.ECVKO
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
kdf, ukmParameters, ukmParametersSalt
-
Constructor Summary
ModifierConstructorDescriptionprotected
KeyAgreementSpi
(String kaAlgorithm, ECVKOAgreement agreement, DerivationFunction kdf) -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
protected void
doInitFromKey
(Key key, AlgorithmParameterSpec parameterSpec, SecureRandom random) protected Key
engineDoPhase
(Key key, boolean lastPhase) Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
engineGenerateSecret, engineGenerateSecret, engineGenerateSecret, engineInit, engineInit, getAlgorithm, getKeySize, trimZeroes
-
Constructor Details
-
KeyAgreementSpi
-
-
Method Details
-
engineDoPhase
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException - Specified by:
engineDoPhase
in classKeyAgreementSpi
- Throws:
InvalidKeyException
IllegalStateException
-
doInitFromKey
protected void doInitFromKey(Key key, AlgorithmParameterSpec parameterSpec, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
doInitFromKey
in classBaseAgreementSpi
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
-
doCalcSecret
protected byte[] doCalcSecret()- Specified by:
doCalcSecret
in classBaseAgreementSpi
-