|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.pqc.legacy.crypto.qtesla.QTESLASigner
Signer for the qTESLA algorithm (https://qtesla.org/)
Constructor Summary | |
QTESLASigner()
|
Method Summary | |
byte[] |
generateSignature(byte[] message)
Generate a signature directly for the passed in message. |
void |
init(boolean forSigning,
CipherParameters param)
Initialise the signer. |
boolean |
verifySignature(byte[] message,
byte[] signature)
Verify the signature against the passed in message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QTESLASigner()
Method Detail |
public void init(boolean forSigning, CipherParameters param)
init
in interface MessageSigner
forSigning
- true if we are generating a signature, false
otherwise.param
- ParametersWithRandom containing a private key for signature generation, public key otherwise.public byte[] generateSignature(byte[] message)
generateSignature
in interface MessageSigner
message
- the message to be signed.public boolean verifySignature(byte[] message, byte[] signature)
verifySignature
in interface MessageSigner
message
- the message that was supposed to have been signed.signature
- the signature of the message
|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |