Class RainbowParameters
java.lang.Object
org.bouncycastle.pqc.legacy.crypto.rainbow.RainbowParameters
- All Implemented Interfaces:
CipherParameters
-
Constructor Summary
ConstructorDescriptionDefault Constructor The elements of the array containing the number of Vinegar variables in each layer are set to the default values here.RainbowParameters
(int[] vi) Constructor with parameters -
Method Summary
Modifier and TypeMethodDescriptionint
Getter for the number of all the polynomials in Rainbowint
Getter for the number of layersint[]
getVi()
Getter for the array containing the number of Vinegar-variables per layer
-
Constructor Details
-
RainbowParameters
public RainbowParameters()Default Constructor The elements of the array containing the number of Vinegar variables in each layer are set to the default values here. -
RainbowParameters
public RainbowParameters(int[] vi) Constructor with parameters- Parameters:
vi
- The elements of the array containing the number of Vinegar variables per layer are set to the values of the input array.
-
-
Method Details
-
getNumOfLayers
public int getNumOfLayers()Getter for the number of layers- Returns:
- the number of layers
-
getDocLength
public int getDocLength()Getter for the number of all the polynomials in Rainbow- Returns:
- the number of the polynomials
-
getVi
public int[] getVi()Getter for the array containing the number of Vinegar-variables per layer- Returns:
- the numbers of vinegars per layer
-