Documentation
¶
Overview ¶
Package checksum implements the flexible-checksum algorithms S3 accepts: CRC32, CRC32C, SHA1, SHA256 from the standard library, and CRC64NVME in-house (Go has no stdlib implementation; it is a ~30-line table-driven CRC with the NVMe polynomial). Values travel base64-encoded on the wire.
Composite reproduces the multipart "checksum-of-checksums" form the SDKs validate: the algorithm applied over the concatenated per-part digests, suffixed with "-<parts>".
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Algorithms = []string{"CRC32", "CRC32C", "CRC64NVME", "SHA1", "SHA256"}
Algorithms lists the supported x-amz-checksum-* suffixes in canonical form.
Functions ¶
func Composite ¶
Composite computes the multipart composite checksum: alg over the concatenated raw per-part digests, base64, suffixed with the part count.
Types ¶
This section is empty.