Interface IMessageSigner
- Namespace
- Org.BouncyCastle.Pqc.Crypto
- Assembly
- BouncyCastle.Cryptography.dll
Base interface for a PQC signature algorithm.
public interface IMessageSigner
Methods
GenerateSignature(byte[])
Sign a message.
byte[] GenerateSignature(byte[] message)
Parameters
messagebyte[]the message to be signed.
Returns
- byte[]
the signature of the message.
Init(bool, ICipherParameters)
Initialise this instance for signature generation or verification.
void Init(bool forSigning, ICipherParameters param)
Parameters
forSigningbooltrue if we are generating a signature, false otherwise.
paramICipherParametersparameters for signature generation or verification.
VerifySignature(byte[], byte[])
Verify a purported signature for a message.
bool VerifySignature(byte[] message, byte[] signature)
Parameters
Returns
- bool
true if and only if the signature verified against the message.