|
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.crypto.mayo.MayoSigner
Implementation of the MAYO digital signature scheme as specified in the MAYO documentation. This class provides functionality for both signature generation and verification.
MAYO is a candidate in the NIST Post-Quantum Cryptography: Additional Digital Signature Schemes project, currently in Round 2 of evaluations. For more details about the NIST standardization process, see: NIST PQC Additional Digital Signatures.
References:
MAYO Official Website MAYO Specification Document MAYO Reference Implementation (C)
Constructor Summary | |
MayoSigner()
|
Method Summary | |
byte[] |
generateSignature(byte[] message)
Generates a MAYO signature for the given message using the initialized private key. |
void |
init(boolean forSigning,
CipherParameters param)
Initializes the signer for either signature generation or verification. |
boolean |
verifySignature(byte[] message,
byte[] signature)
Verifies a MAYO signature against the initialized public key and message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MayoSigner()
Method Detail |
public void init(boolean forSigning, CipherParameters param)
init
in interface MessageSigner
forSigning
- for signing mode, for verificationparam
- CipherParameters containing:
ParametersWithRandom
with MayoPrivateKeyParameters
(for signing)
MayoPublicKeyParameters
(for verification)
java.lang.IllegalArgumentException
- if invalid parameters are providedpublic 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 original messagesignature
- The signature to verify
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |