/freebsd/sys/contrib/openzfs/lib/libzpool/ |
H A D | kernel.c | 771 random_get_bytes(uint8_t *ptr, size_t len) in random_get_bytes() function
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | zfs_context.h | 645 extern int random_get_bytes(uint8_t *ptr, size_t len);
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zio_crypt.c | 254 ret = random_get_bytes((uint8_t *)&key->zk_guid, sizeof (uint64_t)); in zio_crypt_key_init() 258 ret = random_get_bytes(key->zk_master_keydata, keydata_len); in zio_crypt_key_init() 262 ret = random_get_bytes(key->zk_hmac_keydata, SHA512_HMAC_KEYLEN); in zio_crypt_key_init() 266 ret = random_get_bytes(key->zk_salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_init() 320 ret = random_get_bytes(salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_change_salt() 613 ret = random_get_bytes(key->zk_salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_unwrap()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zio_crypt.c | 249 ret = random_get_bytes((uint8_t *)&key->zk_guid, sizeof (uint64_t)); in zio_crypt_key_init() 253 ret = random_get_bytes(key->zk_master_keydata, keydata_len); in zio_crypt_key_init() 257 ret = random_get_bytes(key->zk_hmac_keydata, SHA512_HMAC_KEYLEN); in zio_crypt_key_init() 261 ret = random_get_bytes(key->zk_salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_init() 310 ret = random_get_bytes(salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_change_salt() 571 ret = random_get_bytes(key->zk_salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_unwrap()
|
/freebsd/sys/cddl/compat/opensolaris/sys/ |
H A D | random.h | 32 #define random_get_bytes(p, s) read_random((p), (int)(s)) macro
|
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | random.h | 31 random_get_bytes(uint8_t *ptr, size_t len) in random_get_bytes() function
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | random.h | 38 random_get_bytes(uint8_t *p, size_t s) in random_get_bytes() function
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | mesh_rsn.c | 184 if (random_get_bytes(rsn->mgtk, rsn->mgtk_len) < 0) in __mesh_rsn_auth_init() 190 if (random_get_bytes(rsn->igtk, rsn->igtk_len) < 0) in __mesh_rsn_auth_init() 518 if (random_get_bytes(sta->my_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_init_ampe_sta()
|
H A D | pasn_supplicant.c | 305 if (random_get_bytes(pasn->fils.nonce, FILS_NONCE_LEN) < 0 || in wpas_pasn_fils_build_auth() 306 random_get_bytes(pasn->fils.session, FILS_SESSION_LEN) < 0) in wpas_pasn_fils_build_auth()
|
H A D | ChangeLog | 981 - mix RAND_bytes() output into random_get_bytes() to force OpenSSL
|
/freebsd/contrib/wpa/src/wps/ |
H A D | wps_attr_build.c | 410 if (random_get_bytes(iv, block_size) < 0) in wps_build_encr_settings()
|
H A D | wps_common.c | 246 if (random_get_bytes((unsigned char *) &val, sizeof(val)) < 0) in wps_generate_pin() 683 if (random_get_bytes(wpabuf_put(pw, WPS_OOB_DEVICE_PASSWORD_LEN), in wps_nfc_token_gen() 685 random_get_bytes((u8 *) &val, sizeof(val))) { in wps_nfc_token_gen()
|
H A D | wps_enrollee.c | 41 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_e_hash() 110 if (random_get_bytes(wps->nonce_e, WPS_NONCE_LEN) < 0) in wps_build_m1() 309 random_get_bytes(psk, sizeof(psk)) < 0) { in wps_build_cred_network_key()
|
H A D | wps_registrar.c | 1461 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_r_hash() 1726 random_get_bytes(r, sizeof(r)) < 0) { in wps_build_cred() 1771 random_get_bytes(wps->new_psk, wps->new_psk_len) < 0) { in wps_build_cred() 1883 if (random_get_bytes(wps->nonce_r, WPS_NONCE_LEN) < 0) in wps_build_m2()
|
/freebsd/contrib/wpa/src/tls/ |
H A D | tlsv1_client_write.c | 67 if (random_get_bytes(conn->client_random + 4, TLS_RANDOM_LEN - 4)) { in tls_send_client_hello() 351 if (random_get_bytes(csecret, csecret_len)) { in tlsv1_key_x_dh()
|
H A D | tlsv1_server_write.c | 60 if (random_get_bytes(conn->server_random + 4, TLS_RANDOM_LEN - 4)) { in tls_write_server_hello() 69 if (random_get_bytes(conn->session_id, conn->session_id_len)) { in tls_write_server_hello() 416 if (random_get_bytes(conn->dh_secret, conn->dh_secret_len)) { in tls_write_server_key_exchange()
|
/freebsd/contrib/wpa/src/rsn_supp/ |
H A D | wpa.c | 725 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4() 4056 if (random_get_bytes(sm->fils_nonce, FILS_NONCE_LEN) < 0 || in fils_build_auth() 4057 random_get_bytes(sm->fils_session, FILS_SESSION_LEN) < 0) in fils_build_auth()
|
H A D | wpa_ft.c | 489 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request() 1257 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_start_over_ds()
|
/freebsd/contrib/wpa/src/eap_server/ |
H A D | eap_server_aka.c | 556 if (random_get_bytes(data->nonce_s, EAP_SIM_NONCE_S_LEN)) in eap_aka_build_reauth()
|
H A D | eap_server_eke.c | 320 if (random_get_bytes(data->nonce_s, data->sess.nonce_len)) { in eap_eke_build_confirm()
|
H A D | eap_server_fast.c | 647 if (random_get_bytes(binding->nonce, sizeof(binding->nonce)) < 0) { in eap_fast_build_crypto_binding() 697 if (random_get_bytes(pac_key, EAP_FAST_PAC_KEY_LEN) < 0 || in eap_fast_build_pac()
|
H A D | eap_server_gpsk.c | 112 if (random_get_bytes(data->rand_server, EAP_GPSK_RAND_LEN)) { in eap_gpsk_build_gpsk_1()
|
H A D | eap_server_mschapv2.c | 105 random_get_bytes(data->auth_challenge, CHALLENGE_LEN)) { in eap_mschapv2_build_challenge()
|
H A D | eap_server_pax.c | 81 if (random_get_bytes(data->rand.r.x, EAP_PAX_RAND_LEN)) { in eap_pax_build_std_1()
|
H A D | eap_server_peap.c | 448 random_get_bytes(data->binding_nonce, 32)) { in eap_peap_build_phase2_tlv()
|