Class GMSSParameters

java.lang.Object
org.bouncycastle.pqc.legacy.crypto.gmss.GMSSParameters

public class GMSSParameters extends Object
This class provides a specification for the GMSS parameters that are used by the GMSSKeyPairGenerator and GMSSSignature classes.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    GMSSParameters(int keySize)
     
    GMSSParameters(int layers, int[] heightOfTrees, int[] winternitzParameter, int[] K)
    The constructor for the parameters of the GMSSKeyPairGenerator.
  • Method Summary

    Modifier and Type
    Method
    Description
    int[]
    Returns the array of height (for each layer) of the authentication trees
    int[]
    Returns the parameter K needed for authentication path computation
    int
    Returns the number of levels of the authentication trees.
    int[]
    Returns the array of WinternitzParameter (for each layer) of the authentication trees

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GMSSParameters

      public GMSSParameters(int layers, int[] heightOfTrees, int[] winternitzParameter, int[] K) throws IllegalArgumentException
      The constructor for the parameters of the GMSSKeyPairGenerator.
      Parameters:
      layers - the number of authentication tree layers
      heightOfTrees - the height of the authentication trees
      winternitzParameter - the Winternitz Parameter 'w' of each layer
      K - parameter for authpath computation
      Throws:
      IllegalArgumentException
    • GMSSParameters

      public GMSSParameters(int keySize) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
  • Method Details

    • getNumOfLayers

      public int getNumOfLayers()
      Returns the number of levels of the authentication trees.
      Returns:
      The number of levels of the authentication trees.
    • getHeightOfTrees

      public int[] getHeightOfTrees()
      Returns the array of height (for each layer) of the authentication trees
      Returns:
      The array of height (for each layer) of the authentication trees
    • getWinternitzParameter

      public int[] getWinternitzParameter()
      Returns the array of WinternitzParameter (for each layer) of the authentication trees
      Returns:
      The array of WinternitzParameter (for each layer) of the authentication trees
    • getK

      public int[] getK()
      Returns the parameter K needed for authentication path computation
      Returns:
      The parameter K needed for authentication path computation