Fix ECDH P-521 test
Get series with b4
b4 am [email protected] change-id 20250521-more-random-e385d0776cd9Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | unit: test-ecdh: Add bytes to l_getrandom wrapperunit/ | +7 | 0 replies | |
| 2/2 | ecc: Check return value of l_getrandom()ell/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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]>