-
Notifications
You must be signed in to change notification settings - Fork 837
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
Add STM32MP13 HAL support for more SHA types #8231
Conversation
This adds STM32 HAL support for: * SHA384 * SHA512 (with -224 and -256) * SHA3 (all variants apart from SHAKE) The partial FIFO block calculations have been adjusted based in the STM32 code to support the larger hash sizes. This should work with other chips such as the STM32U5xx, but is not enabled for that yet.
SHAKE hardware acceleration is also possible if we need it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes all look good. I'll need to do some regression testing on other STM32 parts to make sure the hashing changes do not break anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @LinuxJedi
Tested successfully on STM32U585, STM32U5A9 and STM32H7.
Also pushed a small issue with wolfssl_examples.c broken from a previous PR.
Thanks for running those tests. I have some STM32Fs here if you want me to run additional tests, but I don't envisage them being different. Good catch on your commit. |
@wolfSSL-Bot this PR is ready for merge but it needs an additional reviewer. |
Description
This adds STM32 HAL support for:
The partial FIFO block calculations have been adjusted based in the STM32 code to support the larger hash sizes.
This should work with other chips such as the STM32U5xx, but is not enabled for that yet.
Testing
Tested using the wolfCrypt test suite and benchmark suite on an STM32MP135F-DK.
Checklist