Searched refs:bn_result (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
27 bn_result = bignum_init();
30 bn_result == NULL)
38 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0)
41 ret = bignum_get_unsigned_bin(bn_result, result, result_len);
47 bignum_deinit(bn_result);
H A Dcrypto_gnutls.c160 bn_result = NULL; local
170 bn_result = gcry_mpi_new(modulus_len * 8);
172 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus);
175 bn_result) != GPG_ERR_NO_ERROR)
184 gcry_mpi_release(bn_result);
H A Dcrypto_openssl.c317 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; local
328 bn_result = BN_new();
331 bn_result == NULL)
334 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1)
337 *result_len = BN_bn2bin(bn_result, result);
344 BN_free(bn_result);
/external/wpa_supplicant_8/src/crypto/
H A Dcrypto_internal-modexp.c21 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; local
27 bn_result = bignum_init();
30 bn_result == NULL)
38 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0)
41 ret = bignum_get_unsigned_bin(bn_result, result, result_len);
47 bignum_deinit(bn_result);
H A Dcrypto_gnutls.c160 bn_result = NULL; local
170 bn_result = gcry_mpi_new(modulus_len * 8);
172 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus);
175 bn_result) != GPG_ERR_NO_ERROR)
184 gcry_mpi_release(bn_result);
H A Dcrypto_openssl.c317 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; local
328 bn_result = BN_new();
331 bn_result == NULL)
334 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1)
337 *result_len = BN_bn2bin(bn_result, result);
344 BN_free(bn_result);
/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
27 bn_result = bignum_init();
30 bn_result == NULL)
38 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0)
41 ret = bignum_get_unsigned_bin(bn_result, result, result_len);
47 bignum_deinit(bn_result);
H A Dcrypto_gnutls.c160 bn_result = NULL; local
170 bn_result = gcry_mpi_new(modulus_len * 8);
172 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus);
175 bn_result) != GPG_ERR_NO_ERROR)
184 gcry_mpi_release(bn_result);
H A Dcrypto_openssl.c317 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; local
328 bn_result = BN_new();
331 bn_result == NULL)
334 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1)
337 *result_len = BN_bn2bin(bn_result, result);
344 BN_free(bn_result);

Completed in 112 milliseconds