aws-sdk-cpp icon indicating copy to clipboard operation
aws-sdk-cpp copied to clipboard

Implementing checksum validation for single-part and multipart downloads

Open pulimsr opened this issue 1 month ago • 0 comments

Description of changes: Implemented per-part checksum validation for downloads in TransferManager. Added validateChecksums flag (default: true) to TransferManagerConfiguration. Downloads now validate checksums for both single-part (via file read after download) and multipart transfers (per-part validation). Created GetChecksumFromResult() helper to reduce code duplication. Downloads fail immediately on checksum mismatch.

Check all that applies:

  • [x] Did a review by yourself.
  • [x] Added proper tests to cover this PR. (If tests are not applicable, explain.)
  • [x] Checked if this PR is a breaking (APIs have been changed) change.
  • [x] Checked if this PR will not introduce cross-platform inconsistent behavior.
  • [x] Checked if this PR would require a ReadMe/Wiki update.

Check which platforms you have built SDK on to verify the correctness of this PR.

  • [x] Linux
  • [x] Windows
  • [ ] Android
  • [x] MacOS
  • [ ] IOS
  • [ ] Other Platforms

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

pulimsr avatar Dec 04 '25 22:12 pulimsr