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 String
protected final DerivationFunction
protected byte[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract byte[]
protected byte[]
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) 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:
engineGenerateSecret
in classKeyAgreementSpi
- Throws:
IllegalStateException
-
engineGenerateSecret
protected int engineGenerateSecret(byte[] sharedSecret, int offset) throws IllegalStateException, ShortBufferException - Specified by:
engineGenerateSecret
in classKeyAgreementSpi
- Throws:
IllegalStateException
ShortBufferException
-
engineGenerateSecret
- Specified by:
engineGenerateSecret
in classKeyAgreementSpi
- Throws:
NoSuchAlgorithmException
-
calcSecret
protected abstract byte[] calcSecret()
-