public class KeyAgreementSpi extends BaseAgreementSpi
kaAlgorithm, kdf, ukmParameters
Constructor and Description |
---|
KeyAgreementSpi() |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
calcSecret() |
protected Key |
engineDoPhase(Key key,
boolean lastPhase) |
protected byte[] |
engineGenerateSecret() |
protected int |
engineGenerateSecret(byte[] bytes,
int offset) |
protected void |
engineInit(Key key,
AlgorithmParameterSpec algorithmParameterSpec,
SecureRandom secureRandom) |
protected void |
engineInit(Key key,
SecureRandom secureRandom) |
engineGenerateSecret, getAlgorithm, getKeySize, trimZeroes
protected void engineInit(Key key, SecureRandom secureRandom) throws InvalidKeyException
engineInit
in class KeyAgreementSpi
InvalidKeyException
protected void engineInit(Key key, AlgorithmParameterSpec algorithmParameterSpec, SecureRandom secureRandom) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit
in class KeyAgreementSpi
InvalidKeyException
InvalidAlgorithmParameterException
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException
engineDoPhase
in class KeyAgreementSpi
InvalidKeyException
IllegalStateException
protected byte[] engineGenerateSecret() throws IllegalStateException
engineGenerateSecret
in class BaseAgreementSpi
IllegalStateException
protected int engineGenerateSecret(byte[] bytes, int offset) throws IllegalStateException, ShortBufferException
engineGenerateSecret
in class BaseAgreementSpi
IllegalStateException
ShortBufferException
protected byte[] calcSecret()
calcSecret
in class BaseAgreementSpi
Copyright © 2020 BouncyCastle.org. All rights reserved.