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

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.