Package org.bouncycastle.pqc.crypto.gmss
Class GMSSParameters
- java.lang.Object
-
- org.bouncycastle.pqc.crypto.gmss.GMSSParameters
-
public class GMSSParameters extends java.lang.Object
This class provides a specification for the GMSS parameters that are used by the GMSSKeyPairGenerator and GMSSSignature classes.- See Also:
GMSSKeyPairGenerator
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getHeightOfTrees()
Returns the array of height (for each layer) of the authentication treesint[]
getK()
Returns the parameter K needed for authentication path computationint
getNumOfLayers()
Returns the number of levels of the authentication trees.int[]
getWinternitzParameter()
Returns the array of WinternitzParameter (for each layer) of the authentication trees
-
-
-
Constructor Detail
-
GMSSParameters
public GMSSParameters(int layers, int[] heightOfTrees, int[] winternitzParameter, int[] K) throws java.lang.IllegalArgumentException
The constructor for the parameters of the GMSSKeyPairGenerator.- Parameters:
layers
- the number of authentication tree layersheightOfTrees
- the height of the authentication treeswinternitzParameter
- the Winternitz Parameter 'w' of each layerK
- parameter for authpath computation- Throws:
java.lang.IllegalArgumentException
-
GMSSParameters
public GMSSParameters(int keySize) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
-
Method Detail
-
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
-
-