bind9/tests/isc
Ondřej Surý 8330b49fb9
Use cryptographically-secure pseudo-random generator everywhere
It was discovered in an upcoming academic paper that a xoshiro128**
internal state can be recovered by an external 3rd party allowing to
predict UDP ports and DNS IDs in the outgoing queries.  This could lead
to an attacker spoofing the DNS answers with great efficiency and
poisoning the DNS cache.

Change the internal random generator to system CSPRNG with buffering to
avoid excessive syscalls.

Thanks Omer Ben Simhon and Amit Klein of Hebrew University of Jerusalem
for responsibly reporting this to us.  Very cool research!

(cherry picked from commit cffcab9d5f)
2025-10-02 13:53:14 +02:00
..
testdata/file Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
aes_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
buffer_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
counter_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
crc64_test.c Use clang-format-20 to update formatting 2025-06-25 13:59:44 +10:00
doh_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
errno_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
file_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
hash_test.c Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
heap_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
hmac_test.c Use clang-format-20 to update formatting 2025-06-25 13:59:44 +10:00
ht_test.c Fix case insensitive matching in isc_ht hash table implementation 2024-02-11 11:23:28 +01:00
lex_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
Makefile.am Add tests/isc/uv_wrap.h to Makefile.am 2022-06-01 17:45:34 +02:00
md_test.c Use clang-format-20 to update formatting 2025-06-25 13:59:44 +10:00
mem_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
netaddr_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
netmgr_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
parse_test.c Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
pool_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
quota_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
radix_test.c Add regression test for [GL # 4090] 2023-05-29 13:27:51 +10:00
random_test.c Use cryptographically-secure pseudo-random generator everywhere 2025-10-02 13:53:14 +02:00
regex_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
result_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
safe_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
siphash_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
sockaddr_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
stats_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
symtab_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
task_test.c Use clang-format-20 to update formatting 2025-06-25 13:59:44 +10:00
taskpool_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
time_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
timer_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
uv_wrap.h Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00