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

IDigest

public interface IDigest
namespace Org.BouncyCastle.Crypto { public interface IDigest { string AlgorithmName { get; } int GetDigestSize(); int GetByteLength(); void Update(byte input); void BlockUpdate(byte[] input, int inOff, int inLen); int DoFinal(byte[] output, int outOff); void Reset(); } }