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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]protected voiddoInitFromKey(Key key, AlgorithmParameterSpec algorithmParameterSpec, SecureRandom secureRandom) protected KeyengineDoPhase(Key key, boolean lastPhase) protected byte[]protected intengineGenerateSecret(byte[] bytes, int offset) protected voidengineInit(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:
engineInitin classBaseAgreementSpi- Throws:
InvalidKeyException
-
doInitFromKey
protected void doInitFromKey(Key key, AlgorithmParameterSpec algorithmParameterSpec, SecureRandom secureRandom) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
doInitFromKeyin classBaseAgreementSpi- Throws:
InvalidKeyExceptionInvalidAlgorithmParameterException
-
engineDoPhase
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException - Specified by:
engineDoPhasein classKeyAgreementSpi- Throws:
InvalidKeyExceptionIllegalStateException
-
engineGenerateSecret
- Overrides:
engineGenerateSecretin classBaseAgreementSpi- Throws:
IllegalStateException
-
engineGenerateSecret
protected int engineGenerateSecret(byte[] bytes, int offset) throws IllegalStateException, ShortBufferException - Overrides:
engineGenerateSecretin classBaseAgreementSpi- Throws:
IllegalStateExceptionShortBufferException
-
doCalcSecret
protected byte[] doCalcSecret()- Specified by:
doCalcSecretin classBaseAgreementSpi
-