/third_party/wpa_supplicant/wpa_supplicant-2.9/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_nettle.c | 380 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()
|
D | crypto_gnutls.c | 366 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()
|
D | crypto_openssl.c | 594 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()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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_nettle.c | 380 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()
|
D | crypto_gnutls.c | 366 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()
|
D | crypto_openssl.c | 667 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local 676 bn_exp = BN_bin2bn(power, power_len, NULL); in crypto_mod_exp() 680 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp() 684 if (BN_mod_exp_mont_consttime(bn_result, bn_base, bn_exp, bn_modulus, in crypto_mod_exp() 693 BN_clear_free(bn_exp); in crypto_mod_exp()
|
/third_party/openssl/crypto/bn/ |
D | build.info | 3 bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c bn_mod.c \ 11 INCLUDE[bn_exp.o]=..
|
/third_party/openssl/ |
D | BUILD.gn | 287 "crypto/bn/bn_exp.c",
|
D | CHANGES | 9167 *) Use BN_nnmod instead of BN_mod in crypto/bn/bn_exp.c so that 9178 (except for exponentiation, which stays in crypto/bn/bn_exp.c,
|