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

IStreamCalculator<TResult>

public interface IStreamCalculator<TResult>
Base interface for cryptographic operations such as Hashes, MACs, and Signatures which reduce a stream of data to a single value.
using System.IO; namespace Org.BouncyCastle.Crypto { public interface IStreamCalculator<out TResult> { Stream Stream { get; } TResult GetResult(); } }