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

12

/freebsd-10.0-release/contrib/wpa/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)
/freebsd-10.0-release/sys/cddl/compat/opensolaris/sys/
H A Drandom.h34 #define random_get_bytes(p, s) read_random((p), (int)(s)) macro
/freebsd-10.0-release/contrib/wpa/src/eap_server/
H A Deap_server_md5.c50 if (random_get_bytes(data->challenge, CHALLENGE_LEN)) {
H A Deap_server_mschapv2.c107 random_get_bytes(data->auth_challenge, CHALLENGE_LEN)) {
H A Dikev2.c1098 if (random_get_bytes(data->i_nonce, data->i_nonce_len))
1146 if (random_get_bytes(data->shared_secret, 16))
H A Deap_server_gpsk.c118 if (random_get_bytes(data->rand_server, EAP_GPSK_RAND_LEN)) {
/freebsd-10.0-release/contrib/wpa/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)) {
/freebsd-10.0-release/contrib/wpa/src/wps/
H A Dwps_common.c240 if (random_get_bytes((unsigned char *) &val, sizeof(val)) < 0) {
577 if (random_get_bytes(wpabuf_put(pw, WPS_OOB_DEVICE_PASSWORD_LEN),
579 random_get_bytes((u8 *) &val, sizeof(val))) {
H A Dwps_attr_build.c338 if (random_get_bytes(iv, block_size) < 0)
/freebsd-10.0-release/contrib/wpa/src/ap/
H A Dwpa_auth.c218 if (random_get_bytes(wpa_auth->group->GMK, WPA_GMK_LEN)) {
288 if (random_get_bytes(group->GMK, WPA_GMK_LEN) < 0)
299 if (random_get_bytes(rkey, sizeof(rkey)) < 0)
1180 if (random_get_bytes(pos, 16) < 0)
1609 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) {
1862 if (random_get_bytes(igtk.igtk, WPA_IGTK_LEN) < 0)
1932 if (random_get_bytes(dummy_gtk, gtk_len) < 0)
2252 if (random_get_bytes(dummy_gtk, gsm->GTK_len) < 0)
H A Dpeerkey_auth.c292 if (random_get_bytes(smk, PMK_LEN)) {
H A Dieee802_1x.c135 if (random_get_bytes(key->key_iv, sizeof(key->key_iv))) {
210 random_get_bytes(key->key[key->idx], key->default_len)) {
327 random_get_bytes(ikey, hapd->conf->individual_wep_key_len))
1565 random_get_bytes(eapol->default_wep_key,
/freebsd-10.0-release/contrib/wpa/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))
H A Deap_leap.c165 if (random_get_bytes(pos, LEAP_CHALLENGE_LEN)) {
H A Deap_psk.c128 if (random_get_bytes(data->rand_p, EAP_PSK_RAND_LEN)) {
H A Deap_sake.c221 if (random_get_bytes(data->rand_p, EAP_SAKE_RAND_LEN)) {
H A Deap_sim.c91 if (random_get_bytes(data->nonce_mt, EAP_SIM_NONCE_MT_LEN)) {
1029 if (random_get_bytes(data->nonce_mt, EAP_SIM_NONCE_MT_LEN)) {
H A Deap_gpsk.c324 if (random_get_bytes(data->rand_peer, EAP_GPSK_RAND_LEN)) {
H A Deap_pax.c172 if (random_get_bytes(data->rand.r.y, EAP_PAX_RAND_LEN)) {
/freebsd-10.0-release/contrib/wpa/src/rsn_supp/
H A Dpeerkey.c255 if (random_get_bytes(peerkey->pnonce, WPA_NONCE_LEN)) {
368 if (random_get_bytes(peerkey->inonce, WPA_NONCE_LEN)) {
698 if (random_get_bytes(peerkey->pnonce, WPA_NONCE_LEN)) {
1089 if (random_get_bytes(peerkey->inonce, WPA_NONCE_LEN)) {
H A Dwpa_ft.c355 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) {
815 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) {
/freebsd-10.0-release/contrib/wpa/hostapd/
H A Dhlr_auc_gw.c645 if (random_get_bytes(_rand, 16) < 0)
731 if (random_get_bytes(_rand, EAP_AKA_RAND_LEN) < 0)
/freebsd-10.0-release/cddl/contrib/opensolaris/lib/libzpool/common/sys/
H A Dzfs_context.h543 extern int random_get_bytes(uint8_t *ptr, size_t len);

Completed in 129 milliseconds

12