Home
last modified time | relevance | path

Searched refs:os_get_random (Results 1 – 25 of 52) sorted by relevance

123

/freebsd/contrib/wpa/src/crypto/
H A Drandom.h16 #define random_get_bytes(b, l) os_get_random((b), (l))
H A Dcrypto_internal-modexp.c21 if (os_get_random(privkey, prime_len) < 0) in crypto_dh_init()
H A Dcrypto_libtomcrypt.c530 if (os_get_random(pos, ps_len) < 0) { in pkcs1_generate_encryption_block()
705 if (os_get_random(privkey, prime_len) < 0) in crypto_dh_init()
H A Dms_funcs.c447 if (os_get_random(pw_block, offset) < 0) in encrypt_pw_block_with_password_hash()
H A Drandom.c169 ret = os_get_random(buf, len); in random_get_bytes()
H A Dcrypto_nettle.c312 if (os_get_random(privkey, prime_len) < 0) in crypto_dh_init()
H A Dcrypto_gnutls.c291 if (os_get_random(privkey, prime_len) < 0) in crypto_dh_init()
/freebsd/contrib/wpa/src/utils/
H A Duuid.c83 if (os_get_random(uuid, UUID_LEN) < 0 || in uuid_random()
H A Dos_none.c58 int os_get_random(unsigned char *buf, size_t len) in os_get_random() function
H A Dos_win32.c132 int os_get_random(unsigned char *buf, size_t len) in os_get_random() function
H A Dos_unix.c262 int os_get_random(unsigned char *buf, size_t len) in os_get_random() function
375 if (os_get_random((unsigned char *) &seed, sizeof(seed)) == 0) in os_program_init()
H A Dcommon.c1027 if (os_get_random(addr, ETH_ALEN) < 0) in random_mac_addr()
1037 if (os_get_random(addr + 3, 3) < 0) in random_mac_addr_keep_oui()
H A Dos_internal.c130 int os_get_random(unsigned char *buf, size_t len) in os_get_random() function
H A Dos.h185 int os_get_random(unsigned char *buf, size_t len);
/freebsd/contrib/wpa/hostapd/
H A Dsae_pk_gen.c102 if (os_get_random(m, SAE_PK_M_LEN) < 0) { in main()
H A Ddefconfig236 # operating system. os_get_random() function is used to fetch random data when
258 # If the os_get_random() is known to provide strong random data (e.g., on
/freebsd/contrib/wpa/src/p2p/
H A Dp2p_utils.c33 if (os_get_random((unsigned char *) buf, len)) in p2p_random()
377 if (os_get_random((u8 *) &r, sizeof(r)) < 0) in p2p_channel_pick_random()
/freebsd/contrib/wpa/wpa_supplicant/
H A Dctrl_iface_udp.c414 os_get_random(priv->cookie, COOKIE_LEN);
759 os_get_random(priv->cookie, COOKIE_LEN);
/freebsd/contrib/wpa/src/tls/
H A Dpkcs1.c58 if (os_get_random(pos, ps_len) < 0) { in pkcs1_generate_encryption_block()
H A Dtlsv1_record.c187 if (os_get_random(pos, rl->iv_size)) in tlsv1_record_send()
H A Dtlsv1_client.c68 if (os_get_random(pre_master_secret + 2, in tls_derive_pre_master_secret()
/freebsd/contrib/wpa/src/common/
H A Ddpp_backup.c275 if (!salt || os_get_random(wpabuf_put(salt, 64), 64) < 0) in dpp_build_pw_recipient_info()
441 if (!key || os_get_random(wpabuf_put(key, len), len) < 0) { in dpp_gen_random()
/freebsd/contrib/wpa/src/radius/
H A Dradius.c1069 return os_get_random((u8 *) &msg->hdr->authenticator, in radius_msg_make_authenticator()
1371 if (os_get_random((u8 *) &salt, sizeof(salt)) < 0) { in radius_msg_add_mppe_keys()
1908 return os_get_random(id, len); in radius_gen_session_id()
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_sake.c70 if (os_get_random(&data->session_id, 1)) { in eap_sake_init()
/freebsd/contrib/wpa/src/wps/
H A Dwps_upnp_ssdp.c310 if (os_get_random((void *) &r, sizeof(r)) < 0) in advertisement_state_machine_handler()

123