public class KeyAgreementSpi extends BaseAgreementSpi
kaAlgorithm, kdf, ukmParameters| Constructor and Description |
|---|
KeyAgreementSpi() |
KeyAgreementSpi(String kaAlgorithm,
BasicAgreement mqvAgreement,
DerivationFunction kdf) |
KeyAgreementSpi(String kaAlgorithm,
DerivationFunction kdf) |
KeyAgreementSpi(String kaAlgorithm,
DHUnifiedAgreement unifiedAgreement,
DerivationFunction kdf) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
bigIntToBytes(BigInteger r) |
protected byte[] |
calcSecret() |
protected Key |
engineDoPhase(Key key,
boolean lastPhase) |
protected byte[] |
engineGenerateSecret() |
protected int |
engineGenerateSecret(byte[] sharedSecret,
int offset) |
protected SecretKey |
engineGenerateSecret(String algorithm) |
protected void |
engineInit(Key key,
AlgorithmParameterSpec params,
SecureRandom random) |
protected void |
engineInit(Key key,
SecureRandom random) |
getAlgorithm, getKeySize, trimZeroespublic KeyAgreementSpi()
public KeyAgreementSpi(String kaAlgorithm, DerivationFunction kdf)
public KeyAgreementSpi(String kaAlgorithm, DHUnifiedAgreement unifiedAgreement, DerivationFunction kdf)
public KeyAgreementSpi(String kaAlgorithm, BasicAgreement mqvAgreement, DerivationFunction kdf)
protected byte[] bigIntToBytes(BigInteger r)
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException
engineDoPhase in class KeyAgreementSpiInvalidKeyExceptionIllegalStateExceptionprotected byte[] engineGenerateSecret()
throws IllegalStateException
engineGenerateSecret in class BaseAgreementSpiIllegalStateExceptionprotected int engineGenerateSecret(byte[] sharedSecret,
int offset)
throws IllegalStateException,
ShortBufferException
engineGenerateSecret in class BaseAgreementSpiIllegalStateExceptionShortBufferExceptionprotected SecretKey engineGenerateSecret(String algorithm) throws NoSuchAlgorithmException
engineGenerateSecret in class BaseAgreementSpiNoSuchAlgorithmExceptionprotected 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–2021 The veraPDF Consortium. All rights reserved.