1
0
mirror of https://github.com/php/php-src.git synced 2026-04-10 01:23:53 +02:00
Files
archived-php-src/ext
Tim Düsterhus 57b362b7a9 random: Do not trust arc4random_buf() on glibc (#10390)
This effectively reverts #8984.

As discussed in #10327 which will enable the use of the getrandom(2) syscall on
NetBSD instead of relying on the userland arc4random_buf(), the CSPRNG should
prioritize security over speed [1] and history has shown that userland
implementations unavoidably fall short on the security side. In fact the glibc
implementation is a thin wrapper around the syscall due to security concerns
and thus does not provide any benefit over just calling getrandom(2) ourselves.

Even without any performance optimizations the CSPRNG should be plenty fast for
the vast majority of applications, because they often only need a few bytes of
randomness to generate a session ID. If speed is desired, the OO API offers
faster, but non-cryptographically secure engines.
2023-01-23 18:21:42 +01:00
..
2022-10-27 14:42:17 +01:00
2023-01-19 18:48:53 +00:00
2022-10-27 14:42:17 +01:00
2022-10-24 15:02:55 +02:00
2023-01-19 14:13:34 +00:00
2023-01-17 14:16:18 +00:00
2023-01-09 14:09:43 +01:00
2022-12-16 14:37:39 +01:00
2022-12-09 16:09:23 +01:00
2022-09-27 23:32:37 +02:00
2022-09-06 10:34:10 +01:00
2022-11-13 11:05:28 +01:00
2022-12-18 23:21:25 -07:00
2022-08-26 14:59:59 +02:00
2023-01-15 15:43:34 +00:00
2023-01-02 16:55:03 +00:00
2022-10-13 16:08:34 +02:00
2023-01-20 16:52:52 +01:00