Composite checksum
A composite checksum is an object-level integrity value formed by combining the ordered checksums of the object's upload parts under a specified construction.
S3 distinguishes COMPOSITE from FULL_OBJECT. [1] For multipart SHA-256, the documented construction hashes the concatenated binary part digests and returns the Base64 digest with a part-count suffix; hashing the assembled file once is a different construction. [2]
For completed-object verification, request ObjectParts, ObjectSize and Checksum through GetObjectAttributes. Unrequested attributes are omitted. Use the same selected non-null version for metadata and payload requests where available. [5] [3]
If IsTruncated is true, continue with NextPartNumberMarker as the next request's PartNumberMarker. TotalPartsCount counts all parts, not just the current page. Boto3 uses this name; the raw XML element is PartsCount. [5] [8] For general-purpose buckets, Parts can be absent when no additional checksum was applied; absence is not proof of an empty object. [6]
Verification guidance: retain ordered part identities and byte sizes, reject duplicate identities or an incomplete reported part count, and check their total against ObjectSize and received length. Hash the received bytes at those boundaries. Recombining server-reported digests alone checks metadata consistency, not the downloaded payload. [7] [2]
Relations
- related
- Checksum, Full-object checksum, Multipart upload, Entity tag, Object storage, Base64, CRC concatenation
Advantages
- Part checksums can be validated independently before their ordered digests are combined into the object's composite checksum. [2]
Limitations
- Verification requires the original part boundaries, part order and specified algorithm; a different multipart layout can change the value without changing the assembled bytes. [2]
- For S3 GetObject, request ChecksumMode ENABLED and inspect ChecksumType alongside the algorithm field; the ETag is a separate validator, not a substitute checksum. [3]
Citations
- Amazon S3: Checking object integrity for data uploads, full-object and composite checksum types
- Amazon S3 tutorial: Upload an object through multipart upload and verify its data integrity, step 9
- Amazon S3 API Reference: GetObject, checksum mode, checksum type and ETag
- Amazon S3 API: GetObjectAttributes, selected metadata and version ID
- Amazon S3 API: GetObjectAttributesParts, continuation and absent part metadata
- Amazon S3 API: ObjectPart, part identity and byte size
- Boto3: get_object_attributes response structure and TotalPartsCount
Further reading
Sources & caveats
- Expanded from official AWS API documentation reviewed 2026-11-29. Verification recommendations are a source-based synthesis, not an executed S3 downloader or cloud-service experiment.