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

IBlockResult

public interface IBlockResult
Operators that reduce their input to a single block return an object of this type.
byte[] Collect()

Return the final result of the operation.

int Collect(byte[] buf, int off)

Store the final result of the operation by copying it into the destination array.

Return an upper limit for the size of the result.