Skip to content

Replace output verification algorithm SHA1 with SHA256 - #129

Merged
landerweit-phytec merged 3 commits into
mainfrom
wip-sha1-to-sha256
Nov 23, 2026
Merged

landerweit-phytec merged 3 commits into
mainfrom
wip-sha1-to-sha256

Conversation

@mschwan-phytec

Copy link
Copy Markdown
Collaborator

The automatic read-back verification of written raw data used SHA1.
SHA1 is considered cryptographically broken due to practical
collision attacks, so use SHA256 for this verification instead.

SHA256 is only marginally slower than SHA1 on the targets partup runs
on, while it provides a much stronger integrity guarantee for the
read-back check. The local variables were renamed to output_checksum
to keep them distinct from the sha256sum input file option.

The automatic read-back verification of written raw data used SHA1.
SHA1 is considered cryptographically broken due to practical
collision attacks, so use SHA256 for this verification instead.

SHA256 is only marginally slower than SHA1 on the targets partup runs
on, while it provides a much stronger integrity guarantee for the
read-back check. The local variables were renamed to output_checksum
to keep them distinct from the sha256sum input file option.

Signed-off-by: Martin Schwan <m.schwan@phytec.de>
The read-back verification of written raw data now uses SHA256, so
adjust all documentation mentioning SHA1 for it. Historical release
notes in CHANGELOG.rst are intentionally left unchanged.

Signed-off-by: Martin Schwan <m.schwan@phytec.de>
Record the switch from SHA1 to SHA256 for the automatic read-back
verification of written raw data in the upcoming release notes.

Signed-off-by: Martin Schwan <m.schwan@phytec.de>

@landerweit-phytec landerweit-phytec left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@landerweit-phytec
landerweit-phytec merged commit 3d16584 into main Nov 23, 2026
4 checks passed
@landerweit-phytec
landerweit-phytec deleted the wip-sha1-to-sha256 branch November 23, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants