public class KeyAgreementSpi extends BaseAgreementSpi
Also, MQV key agreement per SEC-1
kdf, ukmParameters| Modifier | Constructor and Description |
|---|---|
protected |
KeyAgreementSpi(String kaAlgorithm,
BasicAgreement agreement,
DerivationFunction kdf) |
protected |
KeyAgreementSpi(String kaAlgorithm,
ECDHCUnifiedAgreement 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, trimZeroesprotected KeyAgreementSpi(String kaAlgorithm, BasicAgreement agreement, DerivationFunction kdf)
protected KeyAgreementSpi(String kaAlgorithm, ECDHCUnifiedAgreement agreement, DerivationFunction kdf)
protected byte[] bigIntToBytes(BigInteger r)
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException
engineDoPhase in class KeyAgreementSpiInvalidKeyExceptionIllegalStateExceptionprotected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit in class KeyAgreementSpiInvalidKeyExceptionInvalidAlgorithmParameterExceptionprotected void engineInit(Key key, SecureRandom random) throws InvalidKeyException
engineInit in class KeyAgreementSpiInvalidKeyExceptionprotected byte[] calcSecret()
calcSecret in class BaseAgreementSpiCopyright © 2015–2019 The veraPDF Consortium. All rights reserved.