Class FipsSHS.ParallelHashParameters

All Implemented Interfaces:
Parameters
Enclosing class:
FipsSHS

public static final class FipsSHS.ParallelHashParameters extends FipsSHS.Parameters
Customizable ParallelHash parameters.
  • Method Details

    • getDigestSizeInBits

      public int getDigestSizeInBits()
      Return the hash size for this parameter set.
      Returns:
      the hash size in bits.
    • getCustomizationString

      public byte[] getCustomizationString()
      Return the customization string for this parameter set.
      Returns:
      the customization string.
    • withCustomizationString

      public FipsSHS.ParallelHashParameters withCustomizationString(byte[] customizationString)
      Return a new set of parameters specifying a specific customization string.
      Parameters:
      customizationString - the function name bit string (S).
      Returns:
      a new set of ParallelHashParameters including the S value.
    • withDigestSize

      public FipsSHS.ParallelHashParameters withDigestSize(int digestSizeinBits)
      Return a new set of parameters specifying a specific hash size.
      Parameters:
      digestSizeinBits - bit length of the hash length.
      Returns:
      a new set of TupleHashParameters for the hash size.
    • withBlockLength

      public FipsSHS.ParallelHashParameters withBlockLength(int blockLengthInBytes)
      Return a new set of parameters specifying a specific block size for chunking.
      Parameters:
      blockLengthInBytes - byte length of the chunking block.
      Returns:
      a new set of ParallelHashParameters for the hash size.