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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
protected Key
engineDoPhase
(Key key, boolean lastPhase) protected byte[]
protected int
engineGenerateSecret
(byte[] bytes, int offset) protected void
engineInit
(Key key, SecureRandom secureRandom) protected void
engineInit
(Key key, AlgorithmParameterSpec algorithmParameterSpec, SecureRandom secureRandom) Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
engineGenerateSecret, getAlgorithm, getKeySize, trimZeroes
-
Constructor Details
-
KeyAgreementSpi
public KeyAgreementSpi()
-
-
Method Details
-
engineInit
- Specified by:
engineInit
in classKeyAgreementSpi
- Throws:
InvalidKeyException
-
engineInit
protected void engineInit(Key key, AlgorithmParameterSpec algorithmParameterSpec, SecureRandom secureRandom) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
engineInit
in classKeyAgreementSpi
- 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
-
calcSecret
protected byte[] calcSecret()- Specified by:
calcSecret
in classBaseAgreementSpi
-