Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/wpa_supplicant/src/crypto/
Dcrypto_internal-modexp.c94 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local
98 bn_exp = bignum_init(); in crypto_mod_exp()
102 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp()
107 bignum_set_unsigned_bin(bn_exp, power, power_len) < 0 || in crypto_mod_exp()
111 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) in crypto_mod_exp()
118 bignum_deinit(bn_exp); in crypto_mod_exp()
Dcrypto_mbedtls.c615 mbedtls_mpi bn_base, bn_exp, bn_modulus, bn_result, bn_rinv; in crypto_mod_exp() local
619 mbedtls_mpi_init(&bn_exp); in crypto_mod_exp()
625 MBEDTLS_MPI_CHK(mbedtls_mpi_read_binary(&bn_exp, power, power_len)); in crypto_mod_exp()
628 MBEDTLS_MPI_CHK(mbedtls_mpi_exp_mod(&bn_result, &bn_base, &bn_exp, &bn_modulus, in crypto_mod_exp()
635 mbedtls_mpi_free(&bn_exp); in crypto_mod_exp()