Class KeyAgreementSpi
java.lang.Object
javax.crypto.KeyAgreementSpi
org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
org.bouncycastle.pqc.jcajce.provider.newhope.KeyAgreementSpi
-
Field Summary
Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
kaAlgorithm, kdf, ukmParameters, ukmParametersSalt
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
protected void
doInitFromKey
(Key key, AlgorithmParameterSpec algorithmParameterSpec, SecureRandom secureRandom) protected Key
engineDoPhase
(Key key, boolean lastPhase) protected byte[]
protected int
engineGenerateSecret
(byte[] bytes, int offset) protected void
engineInit
(Key key, SecureRandom secureRandom) Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
engineGenerateSecret, engineInit, getAlgorithm, getKeySize, trimZeroes
-
Constructor Details
-
KeyAgreementSpi
public KeyAgreementSpi()
-
-
Method Details
-
engineInit
- Overrides:
engineInit
in classBaseAgreementSpi
- Throws:
InvalidKeyException
-
doInitFromKey
protected void doInitFromKey(Key key, AlgorithmParameterSpec algorithmParameterSpec, SecureRandom secureRandom) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
doInitFromKey
in classBaseAgreementSpi
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
-
engineDoPhase
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException - Specified by:
engineDoPhase
in classKeyAgreementSpi
- Throws:
InvalidKeyException
IllegalStateException
-
engineGenerateSecret
- Overrides:
engineGenerateSecret
in classBaseAgreementSpi
- Throws:
IllegalStateException
-
engineGenerateSecret
protected int engineGenerateSecret(byte[] bytes, int offset) throws IllegalStateException, ShortBufferException - Overrides:
engineGenerateSecret
in classBaseAgreementSpi
- Throws:
IllegalStateException
ShortBufferException
-
doCalcSecret
protected byte[] doCalcSecret()- Specified by:
doCalcSecret
in classBaseAgreementSpi
-