IChecksumProvider
Provides checksum computation and verification over byte sequences. Implementations must be thread-safe and stateless.
public interface IChecksumProvider
ChecksumByteLength
Size of the checksum in bytes.
Compute(ReadOnlySequence<byte>)
Computes the checksum of the given data. Returns a byte array of exactly ChecksumByteLength bytes.
Verify(ReadOnlySequence<byte>, ReadOnlySpan<byte>)
Verifies the checksum of the given data against the expected checksum.