|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.flexiprovider.pqc.hbc.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.
| Field Summary | |
(package private) byte[] |
privateKeyOTS
the OTS privateKey parts |
| Constructor Summary | |
GMSSLeaf(java.lang.String[] name,
byte[][] statByte,
int[] statInt)
This constructor regenerates a prior GMSSLeaf object |
|
GMSSLeaf(java.lang.String[] name,
int w,
int numLeafs)
The constructor precomputes some needed variables for ditributed leaf calculation |
|
| Method Summary | |
byte[] |
getLeaf()
Returns the leaf value. |
byte[][] |
getStatByte()
Returns the status byte array used by the GMSSPrivateKeyASN.1 class |
int[] |
getStatInt()
Returns the status int array used by the GMSSPrivateKeyASN.1 class |
void |
initLeafCalc(byte[] seed0)
initialize the distributed leaf calculation reset i,j and compute OTSseed with seed0 |
java.lang.String |
toString()
Returns a String representation of the main part of this element |
boolean |
updateLeafCalc()
Processes steps steps of distributed leaf calculation |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
byte[] privateKeyOTS
| Constructor Detail |
public GMSSLeaf(java.lang.String[] name,
byte[][] statByte,
int[] statInt)
name - an array of strings, containing the name of the used hash
function and PRNG and the name of the corresponding
providerstatByte - status bytesstatInt - status ints
public GMSSLeaf(java.lang.String[] name,
int w,
int numLeafs)
name - an array of strings, containing the name of the used hash
function and PRNG and the name of the corresponding
providerw - the winterniz parameter of that tree the leaf is computed
fornumLeafs - the number of leafs of the tree from where the distributed
computation is called| Method Detail |
public void initLeafCalc(byte[] seed0)
seed0 - the starting seedpublic boolean updateLeafCalc()
steps steps of distributed leaf calculationpublic byte[] getLeaf()
public byte[][] getStatByte()
public int[] getStatInt()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||