Skip to content

Fix ECDH P-521 test

Sergey Trofimov ell 1 version In review

Get series with b4
b4 am [email protected] change-id 20250521-more-random-e385d0776cd9

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2unit: test-ecdh: Add bytes to l_getrandom wrapperunit/test-ecdh.c+7 -10 replies
2/2ecc: Check return value of l_getrandom()ell/ecc.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Fix ECDH P-521 test

When building ell, unit/test-ecdh fails 8 out of 10 times. This appears to be due to the l_getrandom function. The return value of l_getrandom is not being checked, and the wrapper for l_getrandom has not enough pre-generated random numbers, causing it to return false.

---
Sergey Trofimov (2):
unit: test-ecdh: Add bytes to l_getrandom wrapper
ecc: Check return value of l_getrandom()

 ell/ecc.c        | 3 ++-
 unit/test-ecdh.c | 8 +++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

---
base-commit: ccf0a874154b124ce25999b15f172b050c2266ae
change-id: 20250521-more-random-e385d0776cd9

Best regards,

Signature · 1 line
Sergey Trofimov <[email protected]>