|
Bouncy Castle Cryptography 1.50 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.pqc.crypto.gmss.GMSSSigner
public class GMSSSigner
This class implements the GMSS signature scheme.
Constructor Summary | |
---|---|
GMSSSigner(GMSSDigestProvider digest)
The standard constructor tries to generate the MerkleTree Algorithm identifier with the corresponding OID. |
Method Summary | |
---|---|
byte[] |
generateSignature(byte[] message)
Signs a message. |
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 GMSSSigner(GMSSDigestProvider digest)
digest
- the digest to useMethod 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 to be signed.
public boolean verifySignature(byte[] message, byte[] signature)
verifySignature
in interface MessageSigner
message
- the messagesignature
- the signature associated with the message
|
Bouncy Castle Cryptography 1.50 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |