Class FipsSHS.KMACParameters

All Implemented Interfaces:
AuthenticationParameters<FipsSHS.AuthParameters>, Parameters
Enclosing class:
FipsSHS

public static final class FipsSHS.KMACParameters extends FipsSHS.AuthParameters
Customizable KMAC parameters.
  • Method Details

    • getCustomizationString

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

      public FipsSHS.KMACParameters 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 KMACParameters including the S value.
    • withMACSize

      public FipsSHS.KMACParameters withMACSize(int macSizeInBits)
      Return a new set of parameters specifying a specific mac size.
      Specified by:
      withMACSize in interface AuthenticationParameters<FipsSHS.AuthParameters>
      Overrides:
      withMACSize in class FipsSHS.AuthParameters
      Parameters:
      macSizeInBits - bit length of the MAC length.
      Returns:
      a new set of AuthParameters for the MAC size.