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

IBlockResult

public interface IBlockResult
Operators that reduce their input to a single block return an object of this type.
using System; namespace Org.BouncyCastle.Crypto { public interface IBlockResult { byte[] Collect(); int Collect(byte[] buf, int off); int Collect(Span<byte> output); int GetMaxResultLength(); } }