|
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.DigestingMessageSigner
Implements the sign and verify functions for a Signature Scheme using a hash function to allow processing of large messages.
Constructor Summary | |
DigestingMessageSigner(MessageSigner messSigner,
Digest messDigest)
|
Method Summary | |
byte[] |
generateSignature()
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 signing or verification. |
void |
reset()
reset the internal state |
void |
update(byte b)
update the internal digest with the byte b |
void |
update(byte[] in,
int off,
int len)
update the internal digest with the byte array in |
boolean |
verifySignature(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 DigestingMessageSigner(MessageSigner messSigner, Digest messDigest)
Method Detail |
public void init(boolean forSigning, CipherParameters param)
Signer
init
in interface Signer
forSigning
- true if for signing, false otherwiseparam
- necessary parameters.public byte[] generateSignature()
generateSignature
in interface Signer
public void update(byte b)
Signer
update
in interface Signer
public void update(byte[] in, int off, int len)
Signer
update
in interface Signer
public void reset()
Signer
reset
in interface Signer
public boolean verifySignature(byte[] signature)
verifySignature
in interface Signer
signature
- the signature of the message is given as a byte array.
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |