Searched refs:bn_exp (Results 1 – 2 of 2) sorted by relevance
/hal_espressif-3.4.0/components/wpa_supplicant/src/crypto/ |
D | crypto_internal-modexp.c | 94 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()
|
D | crypto_mbedtls.c | 615 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()
|