Home
last modified time | relevance | path

Searched refs:random_get_bytes (Results 1 – 25 of 56) sorted by last modified time

123

/freebsd/sys/contrib/openzfs/lib/libzpool/
H A Dkernel.c771 random_get_bytes(uint8_t *ptr, size_t len) in random_get_bytes() function
/freebsd/sys/contrib/openzfs/include/sys/
H A Dzfs_context.h645 extern int random_get_bytes(uint8_t *ptr, size_t len);
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c254 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 Dzio_crypt.c249 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 Drandom.h32 #define random_get_bytes(p, s) read_random((p), (int)(s)) macro
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Drandom.h31 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 Drandom.h38 random_get_bytes(uint8_t *p, size_t s) in random_get_bytes() function
/freebsd/contrib/wpa/wpa_supplicant/
H A Dmesh_rsn.c184 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 Dpasn_supplicant.c305 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 DChangeLog981 - mix RAND_bytes() output into random_get_bytes() to force OpenSSL
/freebsd/contrib/wpa/src/wps/
H A Dwps_attr_build.c410 if (random_get_bytes(iv, block_size) < 0) in wps_build_encr_settings()
H A Dwps_common.c246 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 Dwps_enrollee.c41 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 Dwps_registrar.c1461 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 Dtlsv1_client_write.c67 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 Dtlsv1_server_write.c60 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 Dwpa.c725 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 Dwpa_ft.c489 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 Deap_server_aka.c556 if (random_get_bytes(data->nonce_s, EAP_SIM_NONCE_S_LEN)) in eap_aka_build_reauth()
H A Deap_server_eke.c320 if (random_get_bytes(data->nonce_s, data->sess.nonce_len)) { in eap_eke_build_confirm()
H A Deap_server_fast.c647 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 Deap_server_gpsk.c112 if (random_get_bytes(data->rand_server, EAP_GPSK_RAND_LEN)) { in eap_gpsk_build_gpsk_1()
H A Deap_server_mschapv2.c105 random_get_bytes(data->auth_challenge, CHALLENGE_LEN)) { in eap_mschapv2_build_challenge()
H A Deap_server_pax.c81 if (random_get_bytes(data->rand.r.x, EAP_PAX_RAND_LEN)) { in eap_pax_build_std_1()
H A Deap_server_peap.c448 random_get_bytes(data->binding_nonce, 32)) { in eap_peap_build_phase2_tlv()

123