Section navigation

Public interface IChecksumProvider

Namespace
Rowles.LeanCorpus.Codecs.CodecKit.Checksum.Providers
Assembly
Rowles.LeanCorpus.dll

Provides checksum computation and verification over byte sequences. Implementations must be thread-safe and stateless.

public interface IChecksumProvider

Public property ChecksumByteLength

Size of the checksum in bytes.

Public method Compute(ReadOnlySequence<byte>)

Computes the checksum of the given data. Returns a byte array of exactly ChecksumByteLength bytes.

Public method Verify(ReadOnlySequence<byte>, ReadOnlySpan<byte>)

Verifies the checksum of the given data against the expected checksum.