Searched refs:random_get_bytes (Results 1 - 25 of 130) sorted by relevance

123456

/external/wpa_supplicant_8/hostapd/src/crypto/
H A Drandom.h16 #define random_get_bytes(b, l) os_get_random((b), (l)) macro
23 int random_get_bytes(void *buf, size_t len);
H A Drandom.c14 * randomness. The random_get_bytes() function mixes in randomness from
16 * calls to random_get_bytes() without reducing security.
154 int random_get_bytes(void *buf, size_t len) function
378 if (random_get_bytes(buf, RANDOM_ENTROPY_SIZE) < 0)
/external/wpa_supplicant_8/src/crypto/
H A Drandom.h16 #define random_get_bytes(b, l) os_get_random((b), (l)) macro
23 int random_get_bytes(void *buf, size_t len);
H A Drandom.c14 * randomness. The random_get_bytes() function mixes in randomness from
16 * calls to random_get_bytes() without reducing security.
154 int random_get_bytes(void *buf, size_t len) function
378 if (random_get_bytes(buf, RANDOM_ENTROPY_SIZE) < 0)
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Drandom.h16 #define random_get_bytes(b, l) os_get_random((b), (l)) macro
23 int random_get_bytes(void *buf, size_t len);
H A Drandom.c14 * randomness. The random_get_bytes() function mixes in randomness from
16 * calls to random_get_bytes() without reducing security.
154 int random_get_bytes(void *buf, size_t len) function
378 if (random_get_bytes(buf, RANDOM_ENTROPY_SIZE) < 0)
/external/wpa_supplicant_8/hostapd/src/eap_common/
H A Deap_eke_common.c178 if (random_get_bytes(ret_priv, dh->prime_len))
389 if (random_get_bytes(iv, AES_BLOCK_SIZE))
641 if (random_get_bytes(pos, block_size))
651 if (random_get_bytes(pos, pad))
/external/wpa_supplicant_8/hostapd/src/eap_server/
H A Deap_server_md5.c50 if (random_get_bytes(data->challenge, CHALLENGE_LEN)) {
/external/wpa_supplicant_8/src/eap_common/
H A Deap_eke_common.c178 if (random_get_bytes(ret_priv, dh->prime_len))
389 if (random_get_bytes(iv, AES_BLOCK_SIZE))
641 if (random_get_bytes(pos, block_size))
651 if (random_get_bytes(pos, pad))
/external/wpa_supplicant_8/src/eap_server/
H A Deap_server_md5.c50 if (random_get_bytes(data->challenge, CHALLENGE_LEN)) {
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/
H A Deap_eke_common.c178 if (random_get_bytes(ret_priv, dh->prime_len))
389 if (random_get_bytes(iv, AES_BLOCK_SIZE))
641 if (random_get_bytes(pos, block_size))
651 if (random_get_bytes(pos, pad))
/external/wpa_supplicant_8/wpa_supplicant/src/eap_server/
H A Deap_server_md5.c50 if (random_get_bytes(data->challenge, CHALLENGE_LEN)) {
/external/wpa_supplicant_8/hostapd/src/tls/
H A Dtlsv1_server_write.c57 if (random_get_bytes(conn->server_random + 4, TLS_RANDOM_LEN - 4)) {
66 if (random_get_bytes(conn->session_id, conn->session_id_len)) {
288 if (random_get_bytes(conn->dh_secret, conn->dh_secret_len)) {
H A Dtlsv1_client_write.c56 if (random_get_bytes(conn->client_random + 4, TLS_RANDOM_LEN - 4)) {
223 if (random_get_bytes(csecret, csecret_len)) {
/external/wpa_supplicant_8/hostapd/src/wps/
H A Dwps_common.c240 if (random_get_bytes((unsigned char *) &val, sizeof(val)) < 0) {
651 if (random_get_bytes(wpabuf_put(pw, WPS_OOB_DEVICE_PASSWORD_LEN),
653 random_get_bytes((u8 *) &val, sizeof(val))) {
/external/wpa_supplicant_8/src/tls/
H A Dtlsv1_server_write.c57 if (random_get_bytes(conn->server_random + 4, TLS_RANDOM_LEN - 4)) {
66 if (random_get_bytes(conn->session_id, conn->session_id_len)) {
288 if (random_get_bytes(conn->dh_secret, conn->dh_secret_len)) {
H A Dtlsv1_client_write.c56 if (random_get_bytes(conn->client_random + 4, TLS_RANDOM_LEN - 4)) {
223 if (random_get_bytes(csecret, csecret_len)) {
/external/wpa_supplicant_8/src/wps/
H A Dwps_common.c240 if (random_get_bytes((unsigned char *) &val, sizeof(val)) < 0) {
651 if (random_get_bytes(wpabuf_put(pw, WPS_OOB_DEVICE_PASSWORD_LEN),
653 random_get_bytes((u8 *) &val, sizeof(val))) {
/external/wpa_supplicant_8/wpa_supplicant/src/tls/
H A Dtlsv1_server_write.c57 if (random_get_bytes(conn->server_random + 4, TLS_RANDOM_LEN - 4)) {
66 if (random_get_bytes(conn->session_id, conn->session_id_len)) {
288 if (random_get_bytes(conn->dh_secret, conn->dh_secret_len)) {
/external/wpa_supplicant_8/wpa_supplicant/src/wps/
H A Dwps_common.c240 if (random_get_bytes((unsigned char *) &val, sizeof(val)) < 0) {
651 if (random_get_bytes(wpabuf_put(pw, WPS_OOB_DEVICE_PASSWORD_LEN),
653 random_get_bytes((u8 *) &val, sizeof(val))) {
/external/wpa_supplicant_8/hostapd/src/ap/
H A Dwpa_auth.c221 if (random_get_bytes(wpa_auth->group->GMK, WPA_GMK_LEN)) {
292 if (random_get_bytes(group->GMK, WPA_GMK_LEN) < 0)
304 if (random_get_bytes(rkey, sizeof(rkey)) < 0)
1188 if (random_get_bytes(pos, 16) < 0)
1628 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) {
1881 if (random_get_bytes(igtk.igtk, WPA_IGTK_LEN) < 0)
1951 if (random_get_bytes(dummy_gtk, gtk_len) < 0)
2272 if (random_get_bytes(dummy_gtk, gsm->GTK_len) < 0)
/external/wpa_supplicant_8/hostapd/src/eap_peer/
H A Deap_mschapv2.c197 } else if (random_get_bytes(peer_challenge, MSCHAPV2_CHAL_LEN)) {
564 if (random_get_bytes(cp->peer_challenge, MSCHAPV2_CHAL_LEN))
/external/wpa_supplicant_8/src/ap/
H A Dwpa_auth.c221 if (random_get_bytes(wpa_auth->group->GMK, WPA_GMK_LEN)) {
292 if (random_get_bytes(group->GMK, WPA_GMK_LEN) < 0)
304 if (random_get_bytes(rkey, sizeof(rkey)) < 0)
1188 if (random_get_bytes(pos, 16) < 0)
1628 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) {
1881 if (random_get_bytes(igtk.igtk, WPA_IGTK_LEN) < 0)
1951 if (random_get_bytes(dummy_gtk, gtk_len) < 0)
2272 if (random_get_bytes(dummy_gtk, gsm->GTK_len) < 0)
/external/wpa_supplicant_8/src/eap_peer/
H A Deap_mschapv2.c197 } else if (random_get_bytes(peer_challenge, MSCHAPV2_CHAL_LEN)) {
564 if (random_get_bytes(cp->peer_challenge, MSCHAPV2_CHAL_LEN))
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Dwpa_auth.c221 if (random_get_bytes(wpa_auth->group->GMK, WPA_GMK_LEN)) {
292 if (random_get_bytes(group->GMK, WPA_GMK_LEN) < 0)
304 if (random_get_bytes(rkey, sizeof(rkey)) < 0)
1188 if (random_get_bytes(pos, 16) < 0)
1628 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) {
1881 if (random_get_bytes(igtk.igtk, WPA_IGTK_LEN) < 0)
1951 if (random_get_bytes(dummy_gtk, gtk_len) < 0)
2272 if (random_get_bytes(dummy_gtk, gsm->GTK_len) < 0)

Completed in 494 milliseconds

123456