sha256: don't truncate the padded bit length to 32 bits #3177

Merged
erichelgeson merged 1 commit from eric/sha256 into develop 2026-09-04 15:46:45 -05:00
erichelgeson commented 2026-09-04 08:41:57 -05:00 (Migrated from github.com)

user_data_size is size_t, so user_data_size * 8 wraps at 512 MiB and the message length appended to the final block is wrong.

Fixes #3176

user_data_size is size_t, so user_data_size * 8 wraps at 512 MiB and the message length appended to the final block is wrong. Fixes #3176
kilograham (Migrated from github.com) approved these changes 2026-09-04 09:35:11 -05:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk!3177
No description provided.