Class GMSSLeaf
java.lang.Object
org.bouncycastle.pqc.legacy.crypto.gmss.GMSSLeaf
This class implements the distributed computation of the public key of the
Winternitz one-time signature scheme (OTSS). The class is used by the GMSS
classes for calculation of upcoming leafs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getLeaf()
Returns the leaf value.byte[][]
Returns the status byte array used by the GMSSPrivateKeyASN.1 classint[]
Returns the status int array used by the GMSSPrivateKeyASN.1 classtoString()
Returns a String representation of the main part of this element
-
Constructor Details
-
GMSSLeaf
This constructor regenerates a prior GMSSLeaf object- Parameters:
digest
- an array of strings, containing the name of the used hash function and PRNG and the name of the corresponding providerotsIndex
- status bytesnumLeafs
- status ints
-
GMSSLeaf
-
-
Method Details
-
getLeaf
public byte[] getLeaf()Returns the leaf value.- Returns:
- the leaf value
-
getStatByte
public byte[][] getStatByte()Returns the status byte array used by the GMSSPrivateKeyASN.1 class- Returns:
- The status bytes
-
getStatInt
public int[] getStatInt()Returns the status int array used by the GMSSPrivateKeyASN.1 class- Returns:
- The status ints
-
toString
Returns a String representation of the main part of this element
-