Top Description Fields Constructors Methods
org.bouncycastle.pqc.legacy.crypto.gmss

public Class GMSSParameters

extends Object
Class Inheritance
Imports
org.bouncycastle.util.Arrays

This class provides a specification for the GMSS parameters that are used by the GMSSKeyPairGenerator and GMSSSignature classes.
See Also
org.bouncycastle.pqc.legacy.crypto.gmss.GMSSKeyPairGenerator

Field Summary

Modifier and TypeField and Description
private int[]
heightOfTrees

The height of the authentication trees of each layer.

private int[]
K

The parameter K needed for the authentication path computation

private int
numOfLayers

The number of authentication tree layers.

private int[]
winternitzParameter

The Winternitz Parameter 'w' of each layer.

Constructor Summary

AccessConstructor and Description
public
GMSSParameters(int
the number of authentication tree layers
layers
,
int[]
the height of the authentication trees
heightOfTrees
,
int[]
the Winternitz Parameter 'w' of each layer
winternitzParameter
,
int[]
parameter for authpath computation
K
)

The constructor for the parameters of the GMSSKeyPairGenerator.

public
GMSSParameters(int keySize)

Method Summary

Modifier and TypeMethod and Description
public int[]

Returns:

The array of height (for each layer) of the authentication trees
getHeightOfTrees
()

Returns the array of height (for each layer) of the authentication trees

public int[]

Returns:

The parameter K needed for authentication path computation
getK
()

Returns the parameter K needed for authentication path computation

public int

Returns:

The number of levels of the authentication trees.
getNumOfLayers
()

Returns the number of levels of the authentication trees.

public int[]

Returns:

The array of WinternitzParameter (for each layer) of the authentication trees
getWinternitzParameter
()

Returns the array of WinternitzParameter (for each layer) of the authentication trees

private void
init(int layers, int[] heightOfTrees, int[] winternitzParameter, int[] K)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

heightOfTreesback to summary
private int[] heightOfTrees

The height of the authentication trees of each layer.

Kback to summary
private int[] K

The parameter K needed for the authentication path computation

numOfLayersback to summary
private int numOfLayers

The number of authentication tree layers.

winternitzParameterback to summary
private int[] winternitzParameter

The Winternitz Parameter 'w' of each layer.

Constructor Detail

GMSSParametersback to summary
public GMSSParameters(int layers, int[] heightOfTrees, int[] winternitzParameter, int[] K) throws IllegalArgumentException

The constructor for the parameters of the GMSSKeyPairGenerator.

Parameters
layers:int

the number of authentication tree layers

heightOfTrees:int[]

the height of the authentication trees

winternitzParameter:int[]

the Winternitz Parameter 'w' of each layer

K:int[]

parameter for authpath computation

GMSSParametersback to summary
public GMSSParameters(int keySize) throws IllegalArgumentException

Method Detail

getHeightOfTreesback to summary
public int[] getHeightOfTrees()

Returns the array of height (for each layer) of the authentication trees

Returns:int[]

The array of height (for each layer) of the authentication trees

getKback to summary
public int[] getK()

Returns the parameter K needed for authentication path computation

Returns:int[]

The parameter K needed for authentication path computation

getNumOfLayersback to summary
public int getNumOfLayers()

Returns the number of levels of the authentication trees.

Returns:int

The number of levels of the authentication trees.

getWinternitzParameterback to summary
public int[] getWinternitzParameter()

Returns the array of WinternitzParameter (for each layer) of the authentication trees

Returns:int[]

The array of WinternitzParameter (for each layer) of the authentication trees

initback to summary
private void init(int layers, int[] heightOfTrees, int[] winternitzParameter, int[] K) throws IllegalArgumentException