Package org.bouncycastle.jcajce.spec
Class HKDFParameterSpec
java.lang.Object
org.bouncycastle.jcajce.spec.HKDFParameterSpec
- All Implemented Interfaces:
AlgorithmParameterSpec
-
Constructor Summary
ConstructorsConstructorDescriptionHKDFParameterSpec
(byte[] salt) Construct parameters for HKDF, specifying just optional salt.HKDFParameterSpec
(byte[] salt, byte[] info) Construct parameters for HKDF, specifying both the optional salt and optional info. -
Method Summary
-
Constructor Details
-
HKDFParameterSpec
public HKDFParameterSpec(byte[] salt, byte[] info) Construct parameters for HKDF, specifying both the optional salt and optional info.- Parameters:
salt
- the salt to use, may be null for a salt for hashLen zerosinfo
- the info to use, may be null for an info field of zero bytes
-
HKDFParameterSpec
public HKDFParameterSpec(byte[] salt) Construct parameters for HKDF, specifying just optional salt.- Parameters:
salt
- the salt to use, may be null for a salt for hashLen zeros
-
-
Method Details
-
getSalt
public byte[] getSalt()Returns the salt, or null if the salt should be generated as a byte array of HashLen zeros.- Returns:
- the salt, or null
-
getInfo
public byte[] getInfo()Returns the info field, which may be empty (null is converted to empty).- Returns:
- the info field, never null
-