public class KeyAgreementSpi extends BaseAgreementSpi
ukmParameters
Modifier | Constructor and Description |
---|---|
protected |
KeyAgreementSpi(String kaAlgorithm,
BasicAgreement agreement,
DerivationFunction kdf) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
bigIntToBytes(BigInteger r) |
protected byte[] |
calcSecret() |
protected Key |
engineDoPhase(Key key,
boolean lastPhase) |
protected void |
engineInit(Key key,
AlgorithmParameterSpec params,
SecureRandom random) |
protected void |
engineInit(Key key,
SecureRandom random) |
engineGenerateSecret, engineGenerateSecret, engineGenerateSecret, getAlgorithm, getKeySize, trimZeroes
protected KeyAgreementSpi(String kaAlgorithm, BasicAgreement agreement, DerivationFunction kdf)
protected byte[] bigIntToBytes(BigInteger r)
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException
engineDoPhase
in class KeyAgreementSpi
InvalidKeyException
IllegalStateException
protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit
in class KeyAgreementSpi
InvalidKeyException
InvalidAlgorithmParameterException
protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException
engineInit
in class KeyAgreementSpi
InvalidKeyException
protected byte[] calcSecret()
calcSecret
in class BaseAgreementSpi
Copyright © 2018 BouncyCastle.org. All rights reserved.