|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.pqc.crypto.mldsa.MLDSASigner
| Constructor Summary | |
MLDSASigner()
|
|
| Method Summary | |
byte[] |
generateMu()
|
byte[] |
generateMuSignature(byte[] mu)
|
byte[] |
generateSignature()
generate a signature for the message we've been loaded with using the key we were initialised with. |
void |
init(boolean forSigning,
CipherParameters param)
Initialise the signer for signing or verification. |
protected byte[] |
internalGenerateSignature(byte[] message,
byte[] random)
|
protected boolean |
internalVerifySignature(byte[] message,
byte[] signature)
|
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 |
verifyMu(byte[] mu)
|
boolean |
verifyMuSignature(byte[] mu,
byte[] signature)
|
boolean |
verifySignature(byte[] signature)
return true if the internal state represents the signature described in the passed in array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MLDSASigner()
| Method Detail |
public void init(boolean forSigning,
CipherParameters param)
Signer
init in interface SignerforSigning - true if for signing, false otherwiseparam - necessary parameters.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 byte[] generateMu()
throws CryptoException,
DataLengthException
CryptoException
DataLengthException
public byte[] generateMuSignature(byte[] mu)
throws CryptoException,
DataLengthException
CryptoException
DataLengthException
public byte[] generateSignature()
throws CryptoException,
DataLengthException
Signer
generateSignature in interface SignerCryptoException
DataLengthExceptionpublic boolean verifyMu(byte[] mu)
public boolean verifySignature(byte[] signature)
Signer
verifySignature in interface Signer
public boolean verifyMuSignature(byte[] mu,
byte[] signature)
public void reset()
Signer
reset in interface Signer
protected byte[] internalGenerateSignature(byte[] message,
byte[] random)
protected boolean internalVerifySignature(byte[] message,
byte[] signature)
|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||