Home
last modified time | relevance | path

Searched refs:bn_modulus (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
99 bn_modulus = bignum_init(); in crypto_mod_exp()
102 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp()
108 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0) in crypto_mod_exp()
111 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) in crypto_mod_exp()
119 bignum_deinit(bn_modulus); in crypto_mod_exp()
Dcrypto_mbedtls.c615 mbedtls_mpi bn_base, bn_exp, bn_modulus, bn_result, bn_rinv; in crypto_mod_exp() local
620 mbedtls_mpi_init(&bn_modulus); in crypto_mod_exp()
626 MBEDTLS_MPI_CHK(mbedtls_mpi_read_binary(&bn_modulus, modulus, modulus_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()
636 mbedtls_mpi_free(&bn_modulus); in crypto_mod_exp()