/freebsd-12-stable/contrib/wpa/src/crypto/ |
H A D | random.h | 16 #define random_get_bytes(b, l) os_get_random((b), (l)) macro 23 int random_get_bytes(void *buf, size_t len);
|
H A D | random.c | 14 * randomness. The random_get_bytes() function mixes in randomness from 16 * calls to random_get_bytes() without reducing security. 159 int random_get_bytes(void *buf, size_t len) function 401 if (random_get_bytes(buf, RANDOM_ENTROPY_SIZE) < 0)
|
/freebsd-12-stable/sys/cddl/compat/opensolaris/sys/ |
H A D | random.h | 34 #define random_get_bytes(p, s) read_random((p), (int)(s)) macro
|
/freebsd-12-stable/contrib/wpa/src/eap_server/ |
H A D | eap_server_md5.c | 50 if (random_get_bytes(data->challenge, CHALLENGE_LEN)) {
|
H A D | ikev2.c | 1097 if (random_get_bytes(data->i_nonce, data->i_nonce_len)) 1145 if (random_get_bytes(data->shared_secret, 16))
|
H A D | eap_server_gpsk.c | 112 if (random_get_bytes(data->rand_server, EAP_GPSK_RAND_LEN)) {
|
H A D | eap_server_mschapv2.c | 105 random_get_bytes(data->auth_challenge, CHALLENGE_LEN)) {
|
H A D | eap_server_pax.c | 81 if (random_get_bytes(data->rand.r.x, EAP_PAX_RAND_LEN)) {
|
H A D | eap_server_psk.c | 62 if (random_get_bytes(data->rand_s, EAP_PSK_RAND_LEN)) {
|
/freebsd-12-stable/contrib/wpa/src/eap_common/ |
H A D | eap_eke_common.c | 361 if (random_get_bytes(iv, AES_BLOCK_SIZE)) 612 if (random_get_bytes(pos, block_size)) 622 if (random_get_bytes(pos, pad))
|
H A D | ikev2_common.c | 575 if (random_get_bytes(iv, iv_len)) {
|
/freebsd-12-stable/contrib/wpa/src/eap_peer/ |
H A D | eap_mschapv2.c | 195 } else if (random_get_bytes(peer_challenge, MSCHAPV2_CHAL_LEN)) { 581 if (random_get_bytes(cp->peer_challenge, MSCHAPV2_CHAL_LEN))
|
H A D | eap_leap.c | 169 if (random_get_bytes(pos, LEAP_CHALLENGE_LEN)) {
|
H A D | eap_pax.c | 172 if (random_get_bytes(data->rand.r.y, EAP_PAX_RAND_LEN)) {
|
H A D | eap_psk.c | 129 if (random_get_bytes(data->rand_p, EAP_PSK_RAND_LEN)) {
|
H A D | eap_sake.c | 219 if (random_get_bytes(data->rand_p, EAP_SAKE_RAND_LEN)) {
|
/freebsd-12-stable/contrib/wpa/src/tls/ |
H A D | tlsv1_server_write.c | 60 if (random_get_bytes(conn->server_random + 4, TLS_RANDOM_LEN - 4)) { 69 if (random_get_bytes(conn->session_id, conn->session_id_len)) { 416 if (random_get_bytes(conn->dh_secret, conn->dh_secret_len)) {
|
H A D | tlsv1_client_write.c | 79 if (random_get_bytes(conn->client_random + 4, TLS_RANDOM_LEN - 4)) { 363 if (random_get_bytes(csecret, csecret_len)) {
|
/freebsd-12-stable/contrib/wpa/src/wps/ |
H A D | wps_common.c | 246 if (random_get_bytes((unsigned char *) &val, sizeof(val)) < 0) 683 if (random_get_bytes(wpabuf_put(pw, WPS_OOB_DEVICE_PASSWORD_LEN), 685 random_get_bytes((u8 *) &val, sizeof(val))) {
|
H A D | wps_enrollee.c | 41 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) 110 if (random_get_bytes(wps->nonce_e, WPS_NONCE_LEN) < 0) 309 random_get_bytes(psk, sizeof(psk)) < 0) {
|
H A D | wps_attr_build.c | 401 if (random_get_bytes(iv, block_size) < 0)
|
/freebsd-12-stable/contrib/wpa/wpa_supplicant/ |
H A D | mesh_rsn.c | 185 if (random_get_bytes(rsn->mgtk, rsn->mgtk_len) < 0) 192 if (random_get_bytes(rsn->igtk, rsn->igtk_len) < 0) 519 if (random_get_bytes(sta->my_nonce, WPA_NONCE_LEN) < 0) {
|
/freebsd-12-stable/contrib/wpa/src/ap/ |
H A D | wpa_auth.c | 268 if (random_get_bytes(wpa_auth->group->GMK, WPA_GMK_LEN)) { 359 if (random_get_bytes(group->GMK, WPA_GMK_LEN) < 0) 375 if (random_get_bytes(rkey, sizeof(rkey)) < 0) 1392 if (random_get_bytes(pos, gtk_len) < 0) 1964 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { 1982 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { 2687 if (random_get_bytes(dummy_gtk, gtk_len) < 0) { 3086 if (random_get_bytes(igtk.igtk, len) < 0) 3195 if (random_get_bytes(dummy_gtk, gtk_len) < 0) 3574 if (random_get_bytes(dummy_gt [all...] |
/freebsd-12-stable/contrib/wpa/src/rsn_supp/ |
H A D | wpa_ft.c | 437 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { 1064 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) {
|
/freebsd-12-stable/contrib/wpa/hostapd/ |
H A D | hlr_auc_gw.c | 619 if (random_get_bytes(_rand, 16) < 0) 750 if (random_get_bytes(_rand, EAP_AKA_RAND_LEN) < 0)
|