Class BaseAgreementSpi
java.lang.Object
javax.crypto.KeyAgreementSpi
org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
- Direct Known Subclasses:
KeyAgreementSpi,KeyAgreementSpi,KeyAgreementSpi,KeyAgreementSpi,KeyAgreementSpi,KeyAgreementSpi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final DerivationFunctionprotected byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract byte[]protected byte[]protected intengineGenerateSecret(byte[] sharedSecret, int offset) protected SecretKeyengineGenerateSecret(String algorithm) protected static StringgetAlgorithm(String algDetails) protected static intgetKeySize(String algDetails) protected static byte[]trimZeroes(byte[] secret) Methods inherited from class javax.crypto.KeyAgreementSpi
engineDoPhase, engineInit, engineInit
-
Field Details
-
kaAlgorithm
-
kdf
-
ukmParameters
protected byte[] ukmParameters
-
-
Constructor Details
-
BaseAgreementSpi
-
-
Method Details
-
getAlgorithm
-
getKeySize
-
trimZeroes
protected static byte[] trimZeroes(byte[] secret) -
engineGenerateSecret
- Specified by:
engineGenerateSecretin classKeyAgreementSpi- Throws:
IllegalStateException
-
engineGenerateSecret
protected int engineGenerateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException - Specified by:
engineGenerateSecretin classKeyAgreementSpi- Throws:
IllegalStateExceptionShortBufferException
-
engineGenerateSecret
- Specified by:
engineGenerateSecretin classKeyAgreementSpi- Throws:
NoSuchAlgorithmException
-
calcSecret
protected abstract byte[] calcSecret()
-