Table of Contents

Interface IBlockResult

Namespace
Org.BouncyCastle.Crypto
Assembly
BouncyCastle.Cryptography.dll

Operators that reduce their input to a single block return an object of this type.

public interface IBlockResult

Methods

Collect()

Return the final result of the operation.

byte[] Collect()

Returns

byte[]

A block of bytes, representing the result of an operation.

Collect(byte[], int)

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

int Collect(byte[] buf, int off)

Parameters

buf byte[]

The byte array to copy the result into.

off int

The offset into destination to start copying the result at.

Returns

int

The number of bytes copied into destination.

Collect(Span<byte>)

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

int Collect(Span<byte> output)

Parameters

output Span<byte>

The span to copy the result into.

Returns

int

The number of bytes copied into destination.

GetMaxResultLength()

Return an upper limit for the size of the result.

int GetMaxResultLength()

Returns

int