Home
last modified time | relevance | path

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

/illumos-gate/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()
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c3842 int random_fd = -1; in create_generic_secret_key() local
3906 while ((random_fd = open(DEV_RANDOM, O_RDONLY)) < 0) { in create_generic_secret_key()
3911 if (random_fd < 0) { in create_generic_secret_key()
3916 nread = read(random_fd, buf, secKeyLen); in create_generic_secret_key()
3984 if (random_fd != -1) in create_generic_secret_key()
3985 (void) close(random_fd); in create_generic_secret_key()