public class WinternitzOTSignature
extends java.lang.Object
Constructor and Description |
---|
WinternitzOTSignature(byte[] seed0,
Digest digest,
int w)
The constructor generates an OTS key pair, using
seed0 and
the PRNG |
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[][] |
getPrivateKey() |
byte[] |
getPublicKey() |
byte[] |
getSignature(byte[] message) |
public WinternitzOTSignature(byte[] seed0, Digest digest, int w)
seed0
and
the PRNGseed0
- the seed for the PRGNdigest
- an array of strings, containing the name of the used hash
function, the name of the PRGN and the names of the
corresponding providersw
- the Winternitz parameterpublic byte[][] getPrivateKey()
public byte[] getPublicKey()
public byte[] getSignature(byte[] message)
public int getLog(int intValue)
intValue
.intValue
- an integerintValue