diff options
Diffstat (limited to 'crypto/src/crypto/IBlockResult.cs')
-rw-r--r-- | crypto/src/crypto/IBlockResult.cs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/crypto/src/crypto/IBlockResult.cs b/crypto/src/crypto/IBlockResult.cs index 3ed96a7c1..f3b73e59f 100644 --- a/crypto/src/crypto/IBlockResult.cs +++ b/crypto/src/crypto/IBlockResult.cs @@ -18,17 +18,19 @@ namespace Org.BouncyCastle.Crypto /// Store the final result of the operation by copying it into the destination array. /// </summary> /// <returns>The number of bytes copied into destination.</returns> - /// <param name="destination">The byte array to copy the result into.</param> - /// <param name="offset">The offset into destination to start copying the result at.</param> - int Collect(byte[] destination, int offset); + /// <param name="buf">The byte array to copy the result into.</param> + /// <param name="off">The offset into destination to start copying the result at.</param> + int Collect(byte[] buf, int off); #if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER /// <summary> /// Store the final result of the operation by copying it into the destination span. /// </summary> /// <returns>The number of bytes copied into destination.</returns> - /// <param name="destination">The span to copy the result into.</param> - int Collect(Span<byte> destination); + /// <param name="output">The span to copy the result into.</param> + int Collect(Span<byte> output); #endif + + int GetMaxResultLength(); } } |