Searched refs:random_fd (Results 1 – 2 of 2) sorted by relevance
48 static int random_fd = -1; variable149 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()
3842 int random_fd = -1; in create_generic_secret_key() local3906 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()