Home
last modified time | relevance | path

Searched refs:random_data_source_fd (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/
H A Drandombytes_sysrandom.c94 int random_data_source_fd; member
100 SODIUM_C99(.random_data_source_fd =) -1,
265 if ((stream.random_data_source_fd = in randombytes_sysrandom_init()
303 if (stream.random_data_source_fd != -1 && in randombytes_sysrandom_close()
304 close(stream.random_data_source_fd) == 0) { in randombytes_sysrandom_close()
305 stream.random_data_source_fd = -1; in randombytes_sysrandom_close()
342 if (stream.random_data_source_fd == -1 || in randombytes_sysrandom_buf()
343 safe_read(stream.random_data_source_fd, buf, size) != (ssize_t) size) { in randombytes_sysrandom_buf()
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/salsa20/
H A Drandombytes_salsa20_random.c83 int random_data_source_fd; member
101 SODIUM_C99(.random_data_source_fd =) -1
315 if ((global.random_data_source_fd = in randombytes_salsa20_random_init()
351 } else if (global.random_data_source_fd == -1 || in randombytes_salsa20_random_stir()
352 safe_read(global.random_data_source_fd, stream.key, in randombytes_salsa20_random_stir()
357 if (global.random_data_source_fd == -1 || in randombytes_salsa20_random_stir()
358 safe_read(global.random_data_source_fd, stream.key, in randombytes_salsa20_random_stir()
417 if (global.random_data_source_fd != -1 && in randombytes_salsa20_random_close()
418 close(global.random_data_source_fd) == 0) { in randombytes_salsa20_random_close()
419 global.random_data_source_fd = -1; in randombytes_salsa20_random_close()