<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.
Stream Stream { get; }

Return a "sink" stream which only exists to update the implementing object.

TResult GetResult()

Return the result of processing the stream. This value is only available once the stream has been closed.