Class HashMLDSASigner
java.lang.Object
org.bouncycastle.pqc.crypto.mldsa.HashMLDSASigner
- All Implemented Interfaces:
Signer
Deprecated.
use org.bouncycastle.crypto.signers.HashMLDSASigner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Deprecated.generate a signature for the message we've been loaded with using the key we were initialised with.byte[]generateSignature(byte[] hash) Deprecated.Sign a message that has already been hashed externally.voidinit(boolean forSigning, CipherParameters param) Deprecated.Initialise the signer for signing or verification.voidreset()Deprecated.reset the internal statevoidupdate(byte b) Deprecated.update the internal digest with the byte bvoidupdate(byte[] in, int off, int len) Deprecated.update the internal digest with the byte array inbooleanverifySignature(byte[] signature) Deprecated.return true if the internal state represents the signature described in the passed in array.booleanverifySignature(byte[] hash, byte[] signature) Deprecated.Verify a signature over a message that has already been hashed externally.
-
Constructor Details
-
HashMLDSASigner
public HashMLDSASigner()Deprecated.
-
-
Method Details
-
init
Deprecated.Description copied from interface:SignerInitialise the signer for signing or verification. -
update
public void update(byte b) Deprecated.Description copied from interface:Signerupdate the internal digest with the byte b -
update
public void update(byte[] in, int off, int len) Deprecated.Description copied from interface:Signerupdate the internal digest with the byte array in -
generateSignature
Deprecated.Description copied from interface:Signergenerate a signature for the message we've been loaded with using the key we were initialised with.- Specified by:
generateSignaturein interfaceSigner- Throws:
CryptoExceptionDataLengthException
-
verifySignature
public boolean verifySignature(byte[] signature) Deprecated.Description copied from interface:Signerreturn true if the internal state represents the signature described in the passed in array.- Specified by:
verifySignaturein interfaceSigner
-
generateSignature
Deprecated.Sign a message that has already been hashed externally. SeeHashMLDSASigner.generateSignature(byte[])for details.- Throws:
CryptoExceptionDataLengthException
-
verifySignature
public boolean verifySignature(byte[] hash, byte[] signature) Deprecated.Verify a signature over a message that has already been hashed externally. -
reset
public void reset()Deprecated.reset the internal state
-