Class HKDFParameterSpec

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

public class HKDFParameterSpec extends Object implements AlgorithmParameterSpec
  • Constructor Summary

    Constructors
    Constructor
    Description
    HKDFParameterSpec(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

    Modifier and Type
    Method
    Description
    byte[]
    Returns the info field, which may be empty (null is converted to empty).
    byte[]
    Returns the salt, or null if the salt should be generated as a byte array of HashLen zeros.

    Methods inherited from class java.lang.Object

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