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
public class KeyAgreementSpi extends BaseAgreementSpi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KeyAgreementSpi.ECVKO
-
Field Summary
-
Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
kdf, ukmParameters, ukmParametersSalt
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KeyAgreementSpi(java.lang.String kaAlgorithm, ECVKOAgreement agreement, DerivationFunction kdf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
doCalcSecret()
protected void
doInitFromKey(java.security.Key key, java.security.spec.AlgorithmParameterSpec parameterSpec, java.security.SecureRandom random)
protected java.security.Key
engineDoPhase(java.security.Key key, boolean lastPhase)
-
Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
engineGenerateSecret, engineGenerateSecret, engineGenerateSecret, engineInit, engineInit, getAlgorithm, getKeySize, trimZeroes
-
-
-
-
Constructor Detail
-
KeyAgreementSpi
protected KeyAgreementSpi(java.lang.String kaAlgorithm, ECVKOAgreement agreement, DerivationFunction kdf)
-
-
Method Detail
-
engineDoPhase
protected java.security.Key engineDoPhase(java.security.Key key, boolean lastPhase) throws java.security.InvalidKeyException, java.lang.IllegalStateException
- Specified by:
engineDoPhase
in classjavax.crypto.KeyAgreementSpi
- Throws:
java.security.InvalidKeyException
java.lang.IllegalStateException
-
doInitFromKey
protected void doInitFromKey(java.security.Key key, java.security.spec.AlgorithmParameterSpec parameterSpec, java.security.SecureRandom random) throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
- Specified by:
doInitFromKey
in classBaseAgreementSpi
- Throws:
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
-
doCalcSecret
protected byte[] doCalcSecret()
- Specified by:
doCalcSecret
in classBaseAgreementSpi
-
-