Home
last modified time | relevance | path

Searched refs:random_fd (Results 1 – 3 of 3) sorted by relevance

/titanic_50/usr/src/lib/libcryptoutil/common/
H A Drandom.c48 static int random_fd = -1; variable
149 return (pkcs11_open_common(&random_fd, &random_mutex, in pkcs11_open_random()
189 pkcs11_close_common(&random_fd, &random_mutex); in pkcs11_close_random()
228 return (pkcs11_read_common(&random_fd, &random_mutex, dbuf, dlen)); in pkcs11_read_random()
/titanic_50/usr/src/lib/libzpool/common/
H A Dkernel.c829 static int random_fd = -1, urandom_fd = -1; variable
852 return (random_get_bytes_common(ptr, len, random_fd)); in random_get_bytes()
933 VERIFY((random_fd = open("/dev/random", O_RDONLY)) != -1); in kernel_init()
952 close(random_fd); in kernel_fini()
955 random_fd = -1; in kernel_fini()
/titanic_50/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c3841 int random_fd = -1; in create_generic_secret_key() local
3905 while ((random_fd = open(DEV_RANDOM, O_RDONLY)) < 0) { in create_generic_secret_key()
3910 if (random_fd < 0) { in create_generic_secret_key()
3915 nread = read(random_fd, buf, secKeyLen); in create_generic_secret_key()
3983 if (random_fd != -1) in create_generic_secret_key()
3984 (void) close(random_fd); in create_generic_secret_key()