Skip to content
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

pkg/driver_cryptocell_310: check for input data to be in RAM #21138

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mguetschow
Copy link
Contributor

Contribution description

The nrf CRYPTOCELL peripheral is documented to only support DMA from RAM. In fact, it seems that short data buffers from ROM are also fine (that's why the tests did not catch the bug yet), while larger ones are not.

Let's add an unconditional check for the data to be in RAM following the documentation to be on the safe side.

Testing procedure

examples/psa_crypto and tests/sys/psa_crypto_* should still succeed on nrf52840dk. Tested locally, weekly CI should notice if not.

Let's maybe wait with this one after the hard feature freeze @MrKevinWeiss.

Issues/PRs references

Initially noted during ChaCha20 implementation in #20720 (comment), now run into the same problem with hashes.

@mguetschow mguetschow requested review from Einhornhool and removed request for aabadie, leandrolanzieri and MichelRottleuthner January 17, 2025 12:50
@github-actions github-actions bot added Area: tests Area: tests and testing framework Area: pkg Area: External package ports Area: examples Area: Example Applications labels Jan 17, 2025
@mguetschow mguetschow added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jan 17, 2025
@riot-ci
Copy link

riot-ci commented Jan 17, 2025

Murdock results

✔️ PASSED

ff6d2f7 pkg/driver_cryptocell_310: require all data to be in RAM

Success Failures Total Runtime
10268 0 10270 19m:56s

Artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: examples Area: Example Applications Area: pkg Area: External package ports 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants