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

/osnet-11/usr/src/lib/libcryptoutil/common/
H A Drandom.c46 static int random_fd = -1; variable
169 return (pkcs11_open_common(&random_fd, &random_mutex,
212 pkcs11_close_common(&random_fd, &random_mutex);
252 return (pkcs11_read_common(&random_fd, &random_mutex, dbuf, dlen));
/osnet-11/usr/src/lib/libzpool/common/
H A Dkernel.c887 static int random_fd = -1, urandom_fd = -1; variable
910 return (random_get_bytes_common(ptr, len, random_fd));
976 VERIFY((random_fd = open("/dev/random", O_RDONLY)) != -1);
998 close(random_fd);
1001 random_fd = -1;
/osnet-11/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c3873 int random_fd = -1; local
3937 while ((random_fd = open(DEV_RANDOM, O_RDONLY)) < 0) {
3942 if (random_fd < 0) {
3947 nread = read(random_fd, buf, secKeyLen);
4015 if (random_fd != -1)
4016 (void) close(random_fd);

Completed in 46 milliseconds