-
Notifications
You must be signed in to change notification settings - Fork 2k
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
sys/psa_crypto: SHA-{384,512/{224,256}} #20598
Merged
mguetschow
merged 3 commits into
RIOT-OS:master
from
mguetschow:psa-hashes-sha512-truncated
May 17, 2024
Merged
sys/psa_crypto: SHA-{384,512/{224,256}} #20598
mguetschow
merged 3 commits into
RIOT-OS:master
from
mguetschow:psa-hashes-sha512-truncated
May 17, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
Area: doc
Area: Documentation
Area: build system
Area: Build system
Area: sys
Area: System
Area: examples
Area: Example Applications
labels
Apr 19, 2024
mguetschow
force-pushed
the
psa-hashes-sha512-truncated
branch
from
April 19, 2024 11:55
618010f
to
b5acee7
Compare
mguetschow
added
the
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
label
Apr 19, 2024
Actually, let's defer this to after #20545, I'd get some more symlink interdependencies with this. |
4 tasks
mguetschow
force-pushed
the
psa-hashes-sha512-truncated
branch
from
May 14, 2024 15:14
b5acee7
to
43fb1dc
Compare
mguetschow
requested review from
leandrolanzieri,
aabadie and
MichelRottleuthner
as code owners
May 14, 2024 15:14
Einhornhool
approved these changes
May 16, 2024
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, example passes on nRF52840dk and native.
benpicco
approved these changes
May 16, 2024
github-merge-queue
bot
removed this pull request from the merge queue due to failed status checks
May 16, 2024
mguetschow
force-pushed
the
psa-hashes-sha512-truncated
branch
from
May 17, 2024 08:52
43fb1dc
to
6be95ca
Compare
Thanks everyone! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: build system
Area: Build system
Area: doc
Area: Documentation
Area: examples
Area: Example Applications
Area: sys
Area: System
Area: tests
Area: tests and testing framework
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contribution description
Since #20484, RIOT contains software-implementations for the most commonly used truncated versions of SHA-512. This PR adds glue code to enable usage via the PSA Crypto API.
Sidenote: Although the nRF5 SDK documents support for SHA-384, it appears not to be supported on the nrf52840 CRYPTOCELL, as it returns
CRYS_HASH_ILLEGAL_OPERATION_MODE_ERROR
. This is also confirmed in this thread. They also state that this board actually does not support SHA-512 in hardware either. Maybe it's worth disabling the periph feature for SHA-512 in that case, too?Testing procedure
Issues/PRs references
Second part of #20127, follow-up of #20484
There's also some interdependence with #20545, one of them should be updated after the other has been merged @Einhornhool
Closes #20127