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, engineInit
protected 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 KeyAgreementSpi
IllegalStateException
protected int engineGenerateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException
engineGenerateSecret
in class KeyAgreementSpi
IllegalStateException
ShortBufferException
protected SecretKey engineGenerateSecret(String algorithm) throws NoSuchAlgorithmException
engineGenerateSecret
in class KeyAgreementSpi
NoSuchAlgorithmException
protected abstract byte[] calcSecret()
Copyright © 2021 BouncyCastle.org. All rights reserved.