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

IDsa

public interface IDsa
Interface for classes implementing the Digital Signature Algorithm
string AlgorithmName { get; }

The algorithm name.

BigInteger Order { get; }

The order of the group that the r, s values in signatures belong to.

BigInteger[] GenerateSignature(byte[] message)

Sign the passed in message (usually the output of a hash function).

void Init(bool forSigning, ICipherParameters parameters)

Initialise the signer for signature generation or signature verification.

bool VerifySignature(byte[] message, BigInteger r, BigInteger s)

Verify the message message against the signature values r and s.