|
Bouncy Castle Cryptography Library 1.49 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.pqc.crypto.rainbow.RainbowSigner
public class RainbowSigner
It implements the sign and verify functions for the Rainbow Signature Scheme. Here the message, which has to be signed, is updated. The use of different hash functions is possible.
Detailed information about the signature and the verify-method is to be found in the paper of Jintai Ding, Dieter Schmidt: Rainbow, a New Multivariable Polynomial Signature Scheme. ACNS 2005: 164-175 (http://dx.doi.org/10.1007/11496137_12)
Constructor Summary | |
---|---|
RainbowSigner()
|
Method Summary | |
---|---|
byte[] |
generateSignature(byte[] message)
This function signs the message that has been updated, making use of the private key. |
void |
init(boolean forSigning,
CipherParameters param)
initialise the signer for signature generation or signature verification. |
boolean |
verifySignature(byte[] message,
byte[] signature)
This function verifies the signature of the message that has been updated, with the aid of the public key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RainbowSigner()
Method Detail |
---|
public void init(boolean forSigning, CipherParameters param)
MessageSigner
init
in interface MessageSigner
forSigning
- true if we are generating a signature, false
otherwise.param
- key parameters for signature generation.public byte[] generateSignature(byte[] message)
generateSignature
in interface MessageSigner
message
- the message
public boolean verifySignature(byte[] message, byte[] signature)
verifySignature
in interface MessageSigner
message
- the messagesignature
- the signature of the message
|
Bouncy Castle Cryptography Library 1.49 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |