Searched refs:bn_exp (Results 1 - 9 of 9) sorted by relevance

/external/wpa_supplicant_8/hostapd/src/crypto/
H A Dcrypto_internal-modexp.c21 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; local
25 bn_exp = bignum_init();
29 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL ||
34 bignum_set_unsigned_bin(bn_exp, power, power_len) < 0 ||
38 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0)
45 bignum_deinit(bn_exp);
H A Dcrypto_gnutls.c159 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, local
165 gcry_mpi_scan(&bn_exp, GCRYMPI_FMT_USG, power, power_len, NULL) !=
172 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus);
182 gcry_mpi_release(bn_exp);
H A Dcrypto_openssl.c475 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; local
484 bn_exp = BN_bin2bn(power, power_len, NULL);
488 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL ||
492 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1)
500 BN_clear_free(bn_exp);
/external/wpa_supplicant_8/src/crypto/
H A Dcrypto_internal-modexp.c21 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; local
25 bn_exp = bignum_init();
29 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL ||
34 bignum_set_unsigned_bin(bn_exp, power, power_len) < 0 ||
38 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0)
45 bignum_deinit(bn_exp);
H A Dcrypto_gnutls.c159 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, local
165 gcry_mpi_scan(&bn_exp, GCRYMPI_FMT_USG, power, power_len, NULL) !=
172 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus);
182 gcry_mpi_release(bn_exp);
H A Dcrypto_openssl.c475 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; local
484 bn_exp = BN_bin2bn(power, power_len, NULL);
488 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL ||
492 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1)
500 BN_clear_free(bn_exp);
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Dcrypto_internal-modexp.c21 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; local
25 bn_exp = bignum_init();
29 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL ||
34 bignum_set_unsigned_bin(bn_exp, power, power_len) < 0 ||
38 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0)
45 bignum_deinit(bn_exp);
H A Dcrypto_gnutls.c159 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, local
165 gcry_mpi_scan(&bn_exp, GCRYMPI_FMT_USG, power, power_len, NULL) !=
172 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus);
182 gcry_mpi_release(bn_exp);
H A Dcrypto_openssl.c475 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; local
484 bn_exp = BN_bin2bn(power, power_len, NULL);
488 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL ||
492 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1)
500 BN_clear_free(bn_exp);

Completed in 113 milliseconds