| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private Digest | |
| private int | w
The Winternitz parameter |
| Access | Constructor and Description |
|---|---|
| public | WinternitzOTSVerify(Digest
the name of the hash function used by the OTS and the provider
name of the hash function digest, int the Winternitz parameter w)The constructor |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: The least integer greater or equal to the logarithm to the base 256 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 int | |
| private void | |
| public byte[] | Returns: The public OTS keythe message message, byte[] the one-time signature signature)This method computes the public OTS key from the one-time signature of a message. |
| mdsize | back to summary |
|---|---|
| private int mdsize | |
| messDigestOTS | back to summary |
|---|---|
| private Digest messDigestOTS | |
| w | back to summary |
|---|---|
| private int w The Winternitz parameter | |
| WinternitzOTSVerify | back to summary |
|---|---|
| public WinternitzOTSVerify(Digest digest, int w) The constructor
| |
| 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
| |
| getSignatureLength | back to summary |
|---|---|
public int getSignatureLength()
| |
| hashSignatureBlock | back to summary |
|---|---|
| private void hashSignatureBlock(byte[] sig, int sigOff, int rounds, byte[] buf, int bufOff) | |
| Verify | back to summary |
|---|---|
| public byte[] Verify(byte[] message, byte[] signature) This method computes the public OTS key from the one-time signature of a message. This is *NOT* a complete OTS signature verification, but it suffices for usage with CMSS.
| |