Interface ICryptoIncrementalOperation
- Namespace
- LibSodium
- Assembly
- LibSodium.Net.dll
Represents an incremental operation such as incremental hash, MAC, or sign calculation that processes data in chunks and produces a fixed-size output.
public interface ICryptoIncrementalOperation : IDisposable
- Inherited Members
Methods
Final(Span<byte>)
Finalizes the incremental computation and writes the result to the specified buffer.
void Final(Span<byte> result)
Parameters
result
Span<byte>The buffer where the final result will be written. Must match the expected output length.
Exceptions
- InvalidOperationException
Thrown if called more than once.
Update(ReadOnlySpan<byte>)
Appends data to the ongoing hash or MAC computation.
void Update(ReadOnlySpan<byte> data)
Parameters
data
ReadOnlySpan<byte>The input data to append. May be empty.