Skip to content

Conversation

@mguetschow
Copy link
Contributor

Contribution description

Ed25519 has fixed sizes for private keys, public keys, and signatures. Those can be checked on the algorithm dispatch layer once instead of duplicating code in the backends.

Additionally, we now consistently zero out key-material buffers on the stack in both the hardware and software backend.

Testing procedure

make -C tests/sys/psa_crypto_eddsa all flash test still succeeds for BOARD=native (automatically using c25519 as software backend) and for BOARD=nrf52840dk (automatically using driver_cryptocell_310 as HW backend).

@github-actions github-actions bot added Area: pkg Area: External package ports Area: sys Area: System labels Oct 27, 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 Oct 27, 2025
@riot-ci
Copy link

riot-ci commented Oct 27, 2025

Murdock results

✔️ PASSED

36e09cc sys/psa_crypto: unify buffer size size handling for ed25519 backends

Success Failures Total Runtime
10560 0 10560 12m:05s

Artifacts

@crasbe crasbe added the Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation label Oct 27, 2025
Copy link
Contributor

@crasbe crasbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The static test has some complaints about long lines and ifs without brackets.

@benpicco benpicco requested a review from Einhornhool October 29, 2025 15:32
Copy link
Contributor

@benpicco benpicco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me - please squash

@mguetschow mguetschow enabled auto-merge November 3, 2025 08:34
@mguetschow mguetschow added this pull request to the merge queue Nov 3, 2025
Merged via the queue into RIOT-OS:master with commit 8c1412d Nov 3, 2025
25 checks passed
@mguetschow mguetschow deleted the psa-ed25519-sizes branch November 3, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: pkg Area: External package ports Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants