public class WinternitzOTSVerify
extends java.lang.Object
| Constructor | Description |
|---|---|
WinternitzOTSVerify(Digest digest,
int w) |
The constructor
|
| Modifier and Type | Method | 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. |
int |
getSignatureLength() |
|
byte[] |
Verify(byte[] message,
byte[] signature) |
This method computes the public OTS key from the one-time signature of a
message.
|
public WinternitzOTSVerify(Digest digest, int w)
digest - the name of the hash function used by the OTS and the provider
name of the hash functionw - the Winternitz parameterpublic int getSignatureLength()
public byte[] Verify(byte[] message,
byte[] signature)
message - the messagesignature - the one-time signaturepublic int getLog(int intValue)
intValue.intValue - an integerintValue