Table of Contents

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

message byte[]

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

forSigning bool

true if we are generating a signature, false otherwise.

param ICipherParameters

parameters for signature generation or verification.

VerifySignature(byte[], byte[])

Verify a purported signature for a message.

bool VerifySignature(byte[] message, byte[] signature)

Parameters

message byte[]

the message supposedly signed.

signature byte[]

the purported signature to verify.

Returns

bool

true if and only if the signature verified against the message.