ExStorageServiceSdk.S3.Checksum (ex_storage_service_sdk v0.7.1)

Copy Markdown View Source

Incremental raw-byte S3 checksums, multipart composites and bounded checksum trailers.

Summary

Functions

Combines finalized CRC part checksums and byte lengths into a full-object CRC.

Checksums of parts in wire order, encoded as base64(digest(raw part digests))-count.

A lazy aws-chunked unsigned checksum envelope. Source chunks must obey the configured bound.

Verifies a full-object digest, or an explicit ordered collection of part digests.

Rejects conflicting header/trailer values; absence is reported without a verification claim.

Functions

algorithms()

combine(algorithm, parts)

Combines finalized CRC part checksums and byte lengths into a full-object CRC.

composite(algorithm, parts)

Checksums of parts in wire order, encoded as base64(digest(raw part digests))-count.

digest(algorithm, bytes)

encode_trailers(enumerable, algorithm, opts \\ [])

A lazy aws-chunked unsigned checksum envelope. Source chunks must obey the configured bound.

encoded(state)

finish(checksum)

header(algorithm)

new(algorithm)

update(state, chunk)

verify(state, expected, opts \\ [])

Verifies a full-object digest, or an explicit ordered collection of part digests.

verify_response(state, headers, trailers \\ [], opts \\ [])

Rejects conflicting header/trailer values; absence is reported without a verification claim.