Table of Contents

Interface ISigner

Namespace
Org.BouncyCastle.Crypto
Assembly
BouncyCastle.Cryptography.dll
public interface ISigner

Properties

AlgorithmName

The algorithm name.

string AlgorithmName { get; }

Property Value

string

Methods

BlockUpdate(byte[], int, int)

Update the signer with a block of bytes.

void BlockUpdate(byte[] input, int inOff, int inLen)

Parameters

input byte[]

the byte array containing the data.

inOff int

the offset into the byte array where the data starts.

inLen int

the length of the data.

BlockUpdate(ReadOnlySpan<byte>)

Update the signer with a span of bytes.

void BlockUpdate(ReadOnlySpan<byte> input)

Parameters

input ReadOnlySpan<byte>

the span containing the data.

GenerateSignature()

Generate a signature for the message we've been loaded with using the key we were initialised with.

byte[] GenerateSignature()

Returns

byte[]

A byte array containing the signature for the message.

GetMaxSignatureSize()

int GetMaxSignatureSize()

Returns

int

Init(bool, ICipherParameters)

Initialise the signer for signing or verification.

void Init(bool forSigning, ICipherParameters parameters)

Parameters

forSigning bool

true if for signing, false otherwise.

parameters ICipherParameters

necessary parameters.

Reset()

Reset the signer back to its initial state.

void Reset()

Update(byte)

Update the signer with a single byte.

void Update(byte input)

Parameters

input byte

the input byte to be entered.

VerifySignature(byte[])

Return true if the internal state represents the signature described in the passed in array.

bool VerifySignature(byte[] signature)

Parameters

signature byte[]

an array containing the candidate signature to verify.

Returns

bool

true if the internal state represents the signature described in the passed in array.