| Modifier and Type | Field and Description |
|---|---|
| private int | checksumsize
Sizes of the message and the checksum, both |
| private GMSSRandom | gmssRandom
The source of randomness for OTS private key generation |
| private int | keysize
The length of the message digest and private key |
| private int | mdsize
The length of the message digest and private key |
| private int | messagesize
Sizes of the message and the checksum, both |
| private Digest | messDigestOTS
The hash function used by the OTS |
| private byte[][] | privateKeyOTS
The private key |
| private int | w
The Winternitz parameter |
| Access | Constructor and Description |
|---|---|
| public | WinternitzOTSignature(byte[]
the seed for the PRGN seed0, Digest an array of strings, containing the name of the used hash
function, the name of the PRGN and the names of the
corresponding providers digest, int the Winternitz parameter w)The constructor generates an OTS key pair, using |
| Modifier and Type | Method and Description |
|---|---|
| public 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[][] | |
| public byte[] | |
| public byte[] | Returns: The one-time signature of the message, generated with the private key
|
| private void |
| checksumsize | back to summary |
|---|---|
| private int checksumsize Sizes of the message and the checksum, both | |
| gmssRandom | back to summary |
|---|---|
| private GMSSRandom gmssRandom The source of randomness for OTS private key generation | |
| keysize | back to summary |
|---|---|
| private int keysize The length of the message digest and private key | |
| mdsize | back to summary |
|---|---|
| private int mdsize The length of the message digest and private key | |
| messagesize | back to summary |
|---|---|
| private int messagesize Sizes of the message and the checksum, both | |
| messDigestOTS | back to summary |
|---|---|
| private Digest messDigestOTS The hash function used by the OTS | |
| privateKeyOTS | back to summary |
|---|---|
| private byte[][] privateKeyOTS The private key | |
| w | back to summary |
|---|---|
| private int w The Winternitz parameter | |
| WinternitzOTSignature | back to summary |
|---|---|
| public WinternitzOTSignature(byte[] seed0, Digest digest, int w) The constructor generates an OTS key pair, using
| |
| getLog | back to summary |
|---|---|
| public 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
| |
| getPrivateKey | back to summary |
|---|---|
public byte[][] getPrivateKey()
| |
| getPublicKey | back to summary |
|---|---|
public byte[] getPublicKey()
| |
| getSignature | back to summary |
|---|---|
public byte[] getSignature(byte[] message)
| |
| hashPrivateKeyBlock | back to summary |
|---|---|
| private void hashPrivateKeyBlock(int index, int rounds, byte[] buf, int off) | |