| Modifier and Type | Field and Description |
|---|---|
| private byte[] | concHashs
Byte array for storing the concatenated hashes of private key parts |
| private GMSSRandom | gmssRandom
The source of randomness for OTS private key generation |
| private int | i
indices for distributed computation |
| private int | j
indices for distributed computation |
| private int | keysize
The length of the message digest and private key |
| private byte[] | leaf
Byte array for distributed computation of the upcoming leaf |
| private int | mdsize
The length of the message digest and private key |
| private Digest | messDigestOTS
The hash function used by the OTS and the PRNG |
| pack-priv byte[] | privateKeyOTS
the OTS privateKey parts |
| private byte[] | seed
the internal seed |
| private int | steps
the amount of distributed computation steps when updateLeaf is called |
| private int | two_power_w
storing 2^w |
| private int | w
Winternitz parameter w |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | GMSSLeaf(Digest
an array of strings, containing the digest of the used hash
function and PRNG and the digest of the corresponding
provider digest, int the winterniz parameter of that tree the leaf is computed
for w, int the number of leafs of the tree from where the distributed
computation is called numLeafs)The constructor precomputes some needed variables for distributed leaf calculation |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| private int | Returns: The least integer greater or equal to the logarithm to the base 2 ofintValuean integer intValue)This method returns the least integer that is greater or equal to the
logarithm to the base 2 of an integer |
| public byte[][] | Returns: The status bytesReturns the status byte array used by the GMSSPrivateKeyASN.1 class |
| public int[] | Returns: The status intsReturns the status int array used by the GMSSPrivateKeyASN.1 class |
| pack-priv void | initLeafCalc(byte[]
the starting seed seed0)initialize the distributed leaf calculation reset i,j and compute OTSseed with seed0 |
| pack-priv GMSSLeaf | |
| public String | Returns: a String representation of the main part of this elementOverrides java. Returns a String representation of the main part of this element |
| private void | Returns: true if leaf is completed, else falseProcesses |
| concHashs | back to summary |
|---|---|
| private byte[] concHashs Byte array for storing the concatenated hashes of private key parts | |
| gmssRandom | back to summary |
|---|---|
| private GMSSRandom gmssRandom The source of randomness for OTS private key generation | |
| i | back to summary |
|---|---|
| private int i indices for distributed computation | |
| j | back to summary |
|---|---|
| private int j indices for distributed computation | |
| keysize | back to summary |
|---|---|
| private int keysize The length of the message digest and private key | |
| leaf | back to summary |
|---|---|
| private byte[] leaf Byte array for distributed computation of the upcoming leaf | |
| mdsize | back to summary |
|---|---|
| private int mdsize The length of the message digest and private key | |
| messDigestOTS | back to summary |
|---|---|
| private Digest messDigestOTS The hash function used by the OTS and the PRNG | |
| privateKeyOTS | back to summary |
|---|---|
| pack-priv byte[] privateKeyOTS the OTS privateKey parts | |
| seed | back to summary |
|---|---|
| private byte[] seed the internal seed | |
| steps | back to summary |
|---|---|
| private int steps the amount of distributed computation steps when updateLeaf is called | |
| two_power_w | back to summary |
|---|---|
| private int two_power_w storing 2^w | |
| w | back to summary |
|---|---|
| private int w Winternitz parameter w | |
| GMSSLeaf | back to summary |
|---|---|
| public GMSSLeaf(Digest digest, byte[][] otsIndex, int[] numLeafs) This constructor regenerates a prior GMSSLeaf object
| |
| GMSSLeaf | back to summary |
|---|---|
| pack-priv GMSSLeaf(Digest digest, int w, int numLeafs) The constructor precomputes some needed variables for distributed leaf calculation
| |
| GMSSLeaf | back to summary |
|---|---|
| public GMSSLeaf(Digest digest, int w, int numLeafs, byte[] seed0) | |
| GMSSLeaf | back to summary |
|---|---|
| private GMSSLeaf(GMSSLeaf original) | |
| getLeaf | back to summary |
|---|---|
| public byte[] getLeaf() Returns the leaf value.
| |
| getLog | back to summary |
|---|---|
| private 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
| |
| getStatByte | back to summary |
|---|---|
| public byte[][] getStatByte() Returns the status byte array used by the GMSSPrivateKeyASN.1 class
| |
| getStatInt | back to summary |
|---|---|
| public int[] getStatInt() Returns the status int array used by the GMSSPrivateKeyASN.1 class
| |
| initLeafCalc | back to summary |
|---|---|
| pack-priv void initLeafCalc(byte[] seed0) initialize the distributed leaf calculation reset i,j and compute OTSseed with seed0
| |
| nextLeaf | back to summary |
|---|---|
| pack-priv GMSSLeaf nextLeaf() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a String representation of the main part of this element
| |
| updateLeafCalc | back to summary |
|---|---|
| private void updateLeafCalc() Processes
| |