Home
last modified time | relevance | path

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

/hal_espressif-3.7.0/components/wpa_supplicant/esp_supplicant/src/crypto/
Dcrypto_mbedtls-bignum.c26 mbedtls_mpi *bn = os_zalloc(sizeof(mbedtls_mpi)); in crypto_bignum_init() local
27 if (bn == NULL) { in crypto_bignum_init()
31 mbedtls_mpi_init(bn); in crypto_bignum_init()
33 return (struct crypto_bignum *)bn; in crypto_bignum_init()
40 mbedtls_mpi *bn = os_zalloc(sizeof(mbedtls_mpi)); in crypto_bignum_init_set() local
41 if (bn == NULL) { in crypto_bignum_init_set()
45 MBEDTLS_MPI_CHK(mbedtls_mpi_read_binary(bn, buf, len)); in crypto_bignum_init_set()
46 return (struct crypto_bignum *) bn; in crypto_bignum_init_set()
49 os_free(bn); in crypto_bignum_init_set()
57 mbedtls_mpi *bn = os_zalloc(sizeof(mbedtls_mpi)); in crypto_bignum_init_uint() local
[all …]
/hal_espressif-3.7.0/components/wpa_supplicant/src/common/
Dsae.c827 struct crypto_bignum *bn = NULL; in sae_derive_pt_ecc() local
853 bn = crypto_bignum_init_set(pwd_value, pwd_value_len); in sae_derive_pt_ecc()
854 if (!bn || crypto_bignum_mod(bn, prime, bn) < 0 || in sae_derive_pt_ecc()
855 crypto_bignum_to_bin(bn, pwd_value, sizeof(pwd_value), in sae_derive_pt_ecc()
861 p1 = sswu(ec, group, bn); in sae_derive_pt_ecc()
875 crypto_bignum_deinit(bn, 1); in sae_derive_pt_ecc()
876 bn = crypto_bignum_init_set(pwd_value, pwd_value_len); in sae_derive_pt_ecc()
877 if (!bn || crypto_bignum_mod(bn, prime, bn) < 0 || in sae_derive_pt_ecc()
878 crypto_bignum_to_bin(bn, pwd_value, sizeof(pwd_value), in sae_derive_pt_ecc()
884 p2 = sswu(ec, group, bn); in sae_derive_pt_ecc()
[all …]
Ddpp.c167 static int dpp_bn2bin_pad(const struct crypto_bignum *bn, u8 *pos, size_t len) in dpp_bn2bin_pad() argument
169 if (crypto_bignum_to_bin(bn, pos, len, 0) < 0) in dpp_bn2bin_pad()
/hal_espressif-3.7.0/components/wpa_supplicant/test/
Dtest_crypto.c29 crypto_bignum *bn = crypto_bignum_init();
30 crypto_bignum_deinit(bn, 1);
35 bn = crypto_bignum_init_set(buf, 32);
36 TEST_ASSERT_NOT_NULL(bn);
39 TEST_ASSERT(crypto_bignum_to_bin(bn, buf2, 32, 0) == 32);
42 crypto_bignum_deinit(bn, 1);
/hal_espressif-3.7.0/components/bt/porting/nimble/include/nimble/
Dhci_common.h984 uint8_t bn; member
1804 uint8_t bn; member
1827 uint8_t bn; member
1878 uint8_t bn; member