Class TwoStepKDFParameterSpec

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

public class TwoStepKDFParameterSpec extends Object implements AlgorithmParameterSpec
  • Method Details

    • getKDFMode

      public TwoStepKDFParameterSpec.KDFMode getKDFMode()
      Returns the salt, or null if the salt should be generated as a byte array of HashLen zeros.
      Returns:
      the salt, or null
    • 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
    • getR

      public int getR()
      Return R, the size in bits of the counter, if one is required.
      Returns:
      size of counter in bits.
    • getCounterLocation

      public TwoStepKDFParameterSpec.CounterLocation getCounterLocation()
      Return the counter location
      Returns:
      the counter location.
    • getIV

      public byte[] getIV()
      Return the optional IV, only used with Feedback Mode.
      Returns:
      the iv;