public abstract class BaseAgreementSpi extends KeyAgreementSpi
| Modifier and Type | Field and Description |
|---|---|
protected String |
kaAlgorithm |
protected DerivationFunction |
kdf |
protected byte[] |
ukmParameters |
| Constructor and Description |
|---|
BaseAgreementSpi(String kaAlgorithm,
DerivationFunction kdf) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract byte[] |
calcSecret() |
protected byte[] |
engineGenerateSecret() |
protected int |
engineGenerateSecret(byte[] sharedSecret,
int offset) |
protected SecretKey |
engineGenerateSecret(String algorithm) |
protected static String |
getAlgorithm(String algDetails) |
protected static int |
getKeySize(String algDetails) |
protected static byte[] |
trimZeroes(byte[] secret) |
engineDoPhase, engineInit, engineInitprotected final String kaAlgorithm
protected final DerivationFunction kdf
protected byte[] ukmParameters
public BaseAgreementSpi(String kaAlgorithm, DerivationFunction kdf)
protected static int getKeySize(String algDetails)
protected static byte[] trimZeroes(byte[] secret)
protected byte[] engineGenerateSecret()
throws IllegalStateException
engineGenerateSecret in class KeyAgreementSpiIllegalStateExceptionprotected int engineGenerateSecret(byte[] sharedSecret,
int offset)
throws IllegalStateException,
ShortBufferException
engineGenerateSecret in class KeyAgreementSpiIllegalStateExceptionShortBufferExceptionprotected SecretKey engineGenerateSecret(String algorithm) throws NoSuchAlgorithmException
engineGenerateSecret in class KeyAgreementSpiNoSuchAlgorithmExceptionprotected abstract byte[] calcSecret()
Copyright © 2015–2021 The veraPDF Consortium. All rights reserved.