Class HKDFParameterSpec
java.lang.Object
org.bouncycastle.jcajce.spec.HKDFParameterSpec
- All Implemented Interfaces:
AlgorithmParameterSpec, KeySpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getIKM()Returns the input keying material or seed.byte[]getInfo()Returns the info field, which may be empty (null is converted to empty).intReturns the length (in bytes) of the output resulting from these parameters.byte[]getSalt()Returns the salt, or null if the salt should be generated as a byte array of HashLen zeros.booleanReturns if step 1: extract has to be skipped or not
-
Constructor Details
-
HKDFParameterSpec
public HKDFParameterSpec(byte[] ikm, byte[] salt, byte[] info, int outputLength)
-
-
Method Details
-
getIKM
public byte[] getIKM()Returns the input keying material or seed.- Returns:
- the keying material
-
skipExtract
public boolean skipExtract()Returns if step 1: extract has to be skipped or not- Returns:
- true for skipping, false for no skipping of step 1
-
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
-
getOutputLength
public int getOutputLength()Returns the length (in bytes) of the output resulting from these parameters.- Returns:
- output length, in bytes.
-