public class GMSSRootSig
extends java.lang.Object
Constructor and Description |
---|
GMSSRootSig(Digest digest,
byte[][] statByte,
int[] statInt)
This constructor regenerates a prior GMSSRootSig object used by the
GMSSPrivateKeyASN.1 class
|
GMSSRootSig(Digest digest,
int w,
int height)
The constructor generates the PRNG and initializes some variables
|
Modifier and Type | Method and Description |
---|---|
int |
getLog(int intValue)
This method returns the least integer that is greater or equal to the
logarithm to the base 2 of an integer
intValue . |
byte[] |
getSig() |
byte[][] |
getStatByte()
This method returns the status byte array
|
int[] |
getStatInt()
This method returns the status int array
|
byte[] |
getStatLong()
Converts the long parameters into byte arrays to store it in
statByte-Array
|
void |
initSign(byte[] seed0,
byte[] message)
This method initializes the distributed sigature calculation.
|
java.lang.String |
toString()
returns a string representation of the instance
|
boolean |
updateSign()
This Method performs
steps steps of distributed signature
calculaion |
public GMSSRootSig(Digest digest, byte[][] statByte, int[] statInt)
digest
- an array of strings, containing the digest of the used hash
function, the digest of the PRGN and the names of the
corresponding providersstatByte
- status byte arraystatInt
- status int arraypublic GMSSRootSig(Digest digest, int w, int height)
digest
- an array of strings, containing the digest of the used hash
function, the digest of the PRGN and the names of the
corresponding providersw
- the winternitz parameterheight
- the heigth of the treepublic void initSign(byte[] seed0, byte[] message)
seed0
- the initial OTSseedmessage
- the massage which will be signedpublic boolean updateSign()
steps
steps of distributed signature
calculaionpublic byte[] getSig()
public int getLog(int intValue)
intValue
.intValue
- an integerintValue
public byte[][] getStatByte()
public int[] getStatInt()
public byte[] getStatLong()
public java.lang.String toString()
toString
in class java.lang.Object