mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-11-09 23:00:03 +08:00
Backport the final approved implementation from Mbed-TLS/TF-PSA-Crypto#843 to mbedtls-3.6. Enable the existing Linux getrandom syscall path when sys/syscall.h is available and defines SYS_getrandom. Preserve the existing glibc/Midipix detection and runtime ENOSYS fallback. Apply the platform change to library/entropy_poll.c in this branch. Signed-off-by: Ning Xia <hi@nosec.me>
6 lines
247 B
Plaintext
6 lines
247 B
Plaintext
Features
|
|
* Use the getrandom() system call for PSA crypto initialization on Linux
|
|
when supported by the C library, including musl, uClibc and Android
|
|
bionic, avoiding unnecessary reliance on /dev/random on Linux 5.6 and
|
|
earlier.
|