Searched refs:bn_base (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
24 bn_base = bignum_init();
29 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL ||
33 if (bignum_set_unsigned_bin(bn_base, base, base_len) < 0 ||
38 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0)
44 bignum_deinit(bn_base);
H A Dcrypto_gnutls.c159 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, local
163 if (gcry_mpi_scan(&bn_base, GCRYMPI_FMT_USG, base, base_len, NULL) !=
172 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus);
181 gcry_mpi_release(bn_base);
H A Dcrypto_openssl.c317 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; local
325 bn_base = BN_bin2bn(base, base_len, NULL);
330 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL ||
334 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1)
341 BN_free(bn_base);
/external/wpa_supplicant_8/src/crypto/
H A Dcrypto_internal-modexp.c21 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; local
24 bn_base = bignum_init();
29 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL ||
33 if (bignum_set_unsigned_bin(bn_base, base, base_len) < 0 ||
38 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0)
44 bignum_deinit(bn_base);
H A Dcrypto_gnutls.c159 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, local
163 if (gcry_mpi_scan(&bn_base, GCRYMPI_FMT_USG, base, base_len, NULL) !=
172 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus);
181 gcry_mpi_release(bn_base);
H A Dcrypto_openssl.c317 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; local
325 bn_base = BN_bin2bn(base, base_len, NULL);
330 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL ||
334 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1)
341 BN_free(bn_base);
/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
24 bn_base = bignum_init();
29 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL ||
33 if (bignum_set_unsigned_bin(bn_base, base, base_len) < 0 ||
38 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0)
44 bignum_deinit(bn_base);
H A Dcrypto_gnutls.c159 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, local
163 if (gcry_mpi_scan(&bn_base, GCRYMPI_FMT_USG, base, base_len, NULL) !=
172 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus);
181 gcry_mpi_release(bn_base);
H A Dcrypto_openssl.c317 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; local
325 bn_base = BN_bin2bn(base, base_len, NULL);
330 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL ||
334 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1)
341 BN_free(bn_base);

Completed in 80 milliseconds