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

ISigner

public interface ISigner
using System; namespace Org.BouncyCastle.Crypto { public interface ISigner { string AlgorithmName { get; } void Init(bool forSigning, ICipherParameters parameters); void Update(byte input); void BlockUpdate(byte[] input, int inOff, int inLen); void BlockUpdate(ReadOnlySpan<byte> input); int GetMaxSignatureSize(); byte[] GenerateSignature(); bool VerifySignature(byte[] signature); void Reset(); } }