|
Bouncy Castle Cryptography Library 1.81 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.pqc.legacy.crypto.gmss.util.WinternitzOTSVerify
This class implements signature verification of the Winternitz one-time signature scheme (OTSS), described in C.Dods, N.P. Smart, and M. Stam, "Hash Based Digital Signature Schemes", LNCS 3796, pages 96–115, 2005. The class is used by the GMSS classes.
| Constructor Summary | |
WinternitzOTSVerify(Digest digest,
int w)
The constructor |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
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 parameter| Method Detail |
public int getSignatureLength()
public byte[] Verify(byte[] message,
byte[] signature)
message - the messagesignature - the one-time signature
public int getLog(int intValue)
intValue - an integer
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||