<PackageReference Include="BouncyCastle.Cryptography" Version="2.5.0" />

ISigner

public interface ISigner
string AlgorithmName { get; }

The algorithm name.

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

Update the signer with a block of bytes.

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

void Init(bool forSigning, ICipherParameters parameters)

Initialise the signer for signing or verification.

void Reset()

Reset the signer back to its initial state.

void Update(byte input)

Update the signer with a single byte.

bool VerifySignature(byte[] signature)

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