Class SimpleBlockResult
- Namespace
- Org.BouncyCastle.Crypto
- Assembly
- BouncyCastle.Cryptography.dll
A simple block result object which just carries a byte array.
public sealed class SimpleBlockResult : IBlockResult
- Inheritance
-
SimpleBlockResult
- Implements
- Inherited Members
Constructors
SimpleBlockResult(byte[])
Base constructor - a wrapper for the passed in byte array.
public SimpleBlockResult(byte[] result)
Parameters
resultbyte[]The byte array to be wrapped.
Methods
Collect()
Return the final result of the operation.
public 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.
public int Collect(byte[] buf, int off)
Parameters
bufbyte[]The byte array to copy the result into.
offintThe 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.
public int Collect(Span<byte> output)
Parameters
Returns
- int
The number of bytes copied into destination.
GetMaxResultLength()
Return an upper limit for the size of the result.
public int GetMaxResultLength()