org.bouncycastle.jcajce.provider.asymmetric.ecgost
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
Method Summary |
protected byte[] |
calcSecret()
|
protected java.security.Key |
engineDoPhase(java.security.Key key,
boolean lastPhase)
|
protected void |
engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
|
protected void |
engineInit(java.security.Key key,
java.security.SecureRandom random)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyAgreementSpi
protected KeyAgreementSpi(java.lang.String kaAlgorithm,
ECVKOAgreement agreement,
DerivationFunction kdf)
engineDoPhase
protected java.security.Key engineDoPhase(java.security.Key key,
boolean lastPhase)
throws java.security.InvalidKeyException,
java.lang.IllegalStateException
- Throws:
java.security.InvalidKeyException
java.lang.IllegalStateException
engineInit
protected void engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
- Throws:
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
engineInit
protected void engineInit(java.security.Key key,
java.security.SecureRandom random)
throws java.security.InvalidKeyException
- Throws:
java.security.InvalidKeyException
calcSecret
protected byte[] calcSecret()
- Specified by:
calcSecret
in class BaseAgreementSpi