Skip to content

stm32: fix hash after hmac, performance improvement #4554

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into from

Conversation

mkj
Copy link
Contributor

@mkj mkj commented Aug 15, 2025

This gives a minor speedup for Blocking hash update(). While writing a test I noticed that performing a hash after hmac failed, so that's fixed too here. And pulling on a piece of string, I used sha512 for the new test (for some variety), and that needed updates to metapac.

mkj added 4 commits August 15, 2025 17:16
Running a hash after a hmac would hang, the CR.MODE bit isn't cleared by
INIT.

Test it by running the test twice.
For hash algorithm register update.
sha512 is only supported by hash_v3 and hash_v4, so add a feature for
those chips.
chunks_exact produces better code
@Dirbaio Dirbaio added this pull request to the merge queue Aug 19, 2025
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.

1 participant