[PATCH 0/2] Fix ECDH P-521 test
Sergey Trofimov <[email protected]> Wed, 21 May 2025 18:16:38 +0200
| Newsgroups | dev.linux.lists.ell |
|---|---|
| Message-ID | <[email protected]> |
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,
--
Sergey Trofimov <[email protected]>