Home
last modified time | relevance | path

Searched refs:bn (Results 1 – 5 of 5) sorted by relevance

/hostap-latest/src/crypto/
Dcrypto_mbedtls_alt.c1159 mbedtls_mpi *bn = os_malloc(sizeof(*bn)); in crypto_bignum_init() local
1160 if (bn) in crypto_bignum_init()
1161 mbedtls_mpi_init(bn); in crypto_bignum_init()
1162 return (struct crypto_bignum *)bn; in crypto_bignum_init()
1170 mbedtls_mpi *bn = os_malloc(sizeof(*bn)); in crypto_bignum_init_set() local
1171 if (bn) in crypto_bignum_init_set()
1173 mbedtls_mpi_init(bn); in crypto_bignum_init_set()
1174 if (mbedtls_mpi_read_binary(bn, buf, len) == 0) in crypto_bignum_init_set()
1175 return (struct crypto_bignum *)bn; in crypto_bignum_init_set()
1178 os_free(bn); in crypto_bignum_init_set()
[all …]
Dcrypto_openssl.c1908 BIGNUM *bn; in crypto_bignum_init_set() local
1913 bn = BN_bin2bn(buf, len, NULL); in crypto_bignum_init_set()
1914 return (struct crypto_bignum *) bn; in crypto_bignum_init_set()
1920 BIGNUM *bn; in crypto_bignum_init_uint() local
1925 bn = BN_new(); in crypto_bignum_init_uint()
1926 if (!bn) in crypto_bignum_init_uint()
1928 if (BN_set_word(bn, val) != 1) { in crypto_bignum_init_uint()
1929 BN_free(bn); in crypto_bignum_init_uint()
1932 return (struct crypto_bignum *) bn; in crypto_bignum_init_uint()
3871 BIGNUM *bn = NULL; in crypto_ec_key_get_private_key() local
[all …]
/hostap-latest/src/common/
Dsae.c881 struct crypto_bignum *bn = NULL; in sae_derive_pt_ecc() local
907 bn = crypto_bignum_init_set(pwd_value, pwd_value_len); in sae_derive_pt_ecc()
908 if (!bn || crypto_bignum_mod(bn, prime, bn) < 0 || in sae_derive_pt_ecc()
909 crypto_bignum_to_bin(bn, pwd_value, sizeof(pwd_value), in sae_derive_pt_ecc()
915 p1 = sswu(ec, group, bn); in sae_derive_pt_ecc()
929 crypto_bignum_deinit(bn, 1); in sae_derive_pt_ecc()
930 bn = crypto_bignum_init_set(pwd_value, pwd_value_len); in sae_derive_pt_ecc()
931 if (!bn || crypto_bignum_mod(bn, prime, bn) < 0 || in sae_derive_pt_ecc()
932 crypto_bignum_to_bin(bn, pwd_value, sizeof(pwd_value), in sae_derive_pt_ecc()
938 p2 = sswu(ec, group, bn); in sae_derive_pt_ecc()
[all …]
Ddpp_crypto.c2234 struct crypto_bignum *bn = NULL; in dpp_gen_reconfig_id() local
2253 bn = crypto_bignum_init(); in dpp_gen_reconfig_id()
2256 if (!e_id || !bn || !q || !generator || in dpp_gen_reconfig_id()
2257 crypto_bignum_rand(bn, q) || in dpp_gen_reconfig_id()
2258 crypto_ec_point_mul(ec, generator, bn, e_id)) in dpp_gen_reconfig_id()
2280 crypto_bignum_deinit(bn, 1); in dpp_gen_reconfig_id()
2289 struct crypto_bignum *bn; in dpp_update_reconfig_id() local
2297 bn = crypto_bignum_init(); in dpp_update_reconfig_id()
2304 if (!pp || !e_prime_id || !a_nonce || !bn || !q || !generator || in dpp_update_reconfig_id()
2305 crypto_bignum_rand(bn, q) || /* bn = a-nonce */ in dpp_update_reconfig_id()
[all …]
/hostap-latest/wpa_supplicant/
Dp2p_supplicant_sd.c1146 struct p2p_srv_bonjour *bsrv, *bn; in wpas_p2p_service_flush() local
1149 dl_list_for_each_safe(bsrv, bn, &wpa_s->global->p2p_srv_bonjour, in wpas_p2p_service_flush()