Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/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_nettle.c380 mpz_t bn_base, bn_exp, bn_modulus, bn_result; in crypto_mod_exp() local
384 mpz_inits(bn_base, bn_exp, bn_modulus, bn_result, NULL); in crypto_mod_exp()
386 mpz_import(bn_exp, power_len, 1, 1, 1, 0, power); in crypto_mod_exp()
389 mpz_powm(bn_result, bn_base, bn_exp, bn_modulus); in crypto_mod_exp()
398 mpz_clears(bn_base, bn_exp, bn_modulus, bn_result, NULL); in crypto_mod_exp()
Dcrypto_gnutls.c366 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, in crypto_mod_exp() local
372 gcry_mpi_scan(&bn_exp, GCRYMPI_FMT_USG, power, power_len, NULL) != in crypto_mod_exp()
379 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus); in crypto_mod_exp()
389 gcry_mpi_release(bn_exp); in crypto_mod_exp()
Dcrypto_openssl.c594 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local
603 bn_exp = BN_bin2bn(power, power_len, NULL); in crypto_mod_exp()
607 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp()
611 if (BN_mod_exp_mont_consttime(bn_result, bn_base, bn_exp, bn_modulus, in crypto_mod_exp()
620 BN_clear_free(bn_exp); in crypto_mod_exp()
/external/epid-sdk/epid/common/math/unittests/
Dffelement-test.cc2429 BigNumObj bn_exp[1]; in TEST_F() local
2436 bn_exp[m] = BigNumObj(this->fq_multi_exp_exp_1[m]); in TEST_F()
2439 b[m] = bn_exp[m]; in TEST_F()
2452 BigNumObj bn_exp[2]; in TEST_F() local
2459 bn_exp[m] = BigNumObj(this->fq_multi_exp_exp_2[m]); in TEST_F()
2462 b[m] = bn_exp[m]; in TEST_F()
2474 BigNumObj bn_exp[3]; in TEST_F() local
2481 bn_exp[m] = BigNumObj(this->fq_multi_exp_exp_3[m]); in TEST_F()
2484 b[m] = bn_exp[m]; in TEST_F()
2497 BigNumObj bn_exp[4]; in TEST_F() local
[all …]