Home
last modified time | relevance | path

Searched refs:bn_base (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Dcrypto_internal-modexp.c94 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local
97 bn_base = bignum_init(); in crypto_mod_exp()
102 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp()
106 if (bignum_set_unsigned_bin(bn_base, base, base_len) < 0 || in crypto_mod_exp()
111 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) in crypto_mod_exp()
117 bignum_deinit(bn_base); in crypto_mod_exp()
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/
Dcrypto_mbedtls.c734 mbedtls_mpi bn_base, bn_exp, bn_modulus, bn_result, bn_rinv; in crypto_mod_exp() local
737 mbedtls_mpi_init(&bn_base); in crypto_mod_exp()
743 MBEDTLS_MPI_CHK(mbedtls_mpi_read_binary(&bn_base, base, base_len)); in crypto_mod_exp()
747 MBEDTLS_MPI_CHK(mbedtls_mpi_exp_mod(&bn_result, &bn_base, &bn_exp, &bn_modulus, in crypto_mod_exp()
753 mbedtls_mpi_free(&bn_base); in crypto_mod_exp()