Bouncy Castle Cryptography Library 1.77.0

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


Inner Class Summary
static class KeyAgreementSpi.ECVKO
           
 
Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
kaAlgorithm, kdf, ukmParameters
 
Constructor Summary
protected KeyAgreementSpi(java.lang.String kaAlgorithm, ECVKOAgreement agreement, DerivationFunction kdf)
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Overrides:
engineDoPhase in class javax.crypto.KeyAgreementSpi

doInitFromKey

protected void doInitFromKey(java.security.Key key,
                             java.security.spec.AlgorithmParameterSpec parameterSpec,
                             java.security.SecureRandom random)
                      throws java.security.InvalidKeyException,
                             java.security.InvalidAlgorithmParameterException
Overrides:
doInitFromKey in class BaseAgreementSpi

doCalcSecret

protected byte[] doCalcSecret()
Overrides:
doCalcSecret in class BaseAgreementSpi

Bouncy Castle Cryptography Library 1.77.0