Class KDFParameters
java.lang.Object
org.bouncycastle.crypto.params.KDFParameters
- All Implemented Interfaces:
DerivationParameters
Parameters for the key derivation functions that derive keying material from a shared secret and
an optional block of additional input: KDF1 and KDF2 of IEEE P1363a / ISO 18033-2 (KDF2 being the
ANSI X9.63 KDF, where the additional input is the SharedInfo), and the NIST SP 800-56A concatenation
KDF (where it is the OtherInfo).
For historical reasons the additional input is referred to as the "IV".
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getIV()Return the additional input to the key derivation function.byte[]Return the shared secret the keying material is derived from.
-
Constructor Details
-
KDFParameters
public KDFParameters(byte[] shared, byte[] iv) Base constructor.- Parameters:
shared- the shared secret the keying material is derived from.iv- the additional input to the key derivation function, or null if there is none.- Throws:
NullPointerException- if shared is null.
-
-
Method Details
-
getIV
public byte[] getIV()Return the additional input to the key derivation function.- Returns:
- the additional input, or null if there is none.