Class HKDFParameterSpec

java.lang.Object
org.bouncycastle.jcajce.spec.HKDFParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec, KeySpec

public class HKDFParameterSpec extends Object implements KeySpec, AlgorithmParameterSpec
  • Constructor Summary

    Constructors
    Constructor
    Description
    HKDFParameterSpec(byte[] ikm, byte[] salt, byte[] info, int outputLength)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Returns the input keying material or seed.
    byte[]
    Returns the info field, which may be empty (null is converted to empty).
    int
    Returns the length (in bytes) of the output resulting from these parameters.
    byte[]
    Returns the salt, or null if the salt should be generated as a byte array of HashLen zeros.
    boolean
    Returns if step 1: extract has to be skipped or not

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.