|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.pqc.crypto.gmss.GMSSRootSig
public class GMSSRootSig
This class implements the distributed signature generation of the Winternitz one-time signature scheme (OTSS), described in C.Dods, N.P. Smart, and M. Stam, "Hash Based Digital Signature Schemes", LNCS 3796, pages 96–115, 2005. The class is used by the GMSS classes.
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 array
public 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 tree| Method Detail |
|---|
public void initSign(byte[] seed0,
byte[] message)
seed0 - the initial OTSseedmessage - the massage which will be signedpublic boolean updateSign()
steps steps of distributed signature
calculaion
public byte[] getSig()
public int getLog(int intValue)
intValue.
intValue - an integer
intValuepublic byte[][] getStatByte()
public int[] getStatInt()
public byte[] getStatLong()
public java.lang.String toString()
toString in class java.lang.Object
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||