-
Notifications
You must be signed in to change notification settings - Fork 367
Move alignment helper to its own module in preparation of HMAC module #753
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
Move alignment helper to its own module in preparation of HMAC module #753
Conversation
|
Looks good! Just one small thing |
|
Something is not quite right here, running on an ESP32 produces the following output: I confirmed that the hashes match when running against the |
I did change the following from the original code, based on what was originally in sha.rs. Did it introduce this bug? I don't have an ESP32 on hand yet to test: esp-hal/esp-hal-common/src/reg_access.rs Line 11 in d744d00
Updated (This PR): esp-hal/esp-hal-common/src/reg_access.rs Lines 11 to 15 in ed4d136
|
- Add CHANGELOG.md entry - Change reg_access module visibility
jessebraham
left a comment
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.
LGTM, thanks for taking care of this!
…esp-rs#753) * Move alignment helper to its own module. * fix wrong endian on ESP32 - Add CHANGELOG.md entry - Change reg_access module visibility
Thank you!
Thank you for your contribution.
Please make sure that your submission includes the following:
Must
errorsorwarnings.cargo fmtwas run.CHANGELOG.mdin the proper section.Nice to have
This PR splits up #465, as suggested in #465 (comment) to move the alignment helper and SHA module refactor into it's own PR to be more easily reviewable.
Code mostly taken from:
I have tested on esp32s3, but not on the other architectures as I don't have them on hand.