Home
last modified time | relevance | path

Searched refs:bn_result (Results 1 – 4 of 4) 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
100 bn_result = bignum_init(); in crypto_mod_exp()
103 bn_result == NULL) in crypto_mod_exp()
111 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) in crypto_mod_exp()
114 ret = bignum_get_unsigned_bin(bn_result, result, result_len); in crypto_mod_exp()
120 bignum_deinit(bn_result); 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()
389 mpz_powm(bn_result, bn_base, bn_exp, bn_modulus); in crypto_mod_exp()
390 len = mpz_sizeinbase(bn_result, 2); in crypto_mod_exp()
394 mpz_export(result, result_len, 1, 1, 1, 0, bn_result); in crypto_mod_exp()
398 mpz_clears(bn_base, bn_exp, bn_modulus, bn_result, NULL); in crypto_mod_exp()
Dcrypto_gnutls.c367 bn_result = NULL; in crypto_mod_exp() local
377 bn_result = gcry_mpi_new(modulus_len * 8); in crypto_mod_exp()
379 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus); in crypto_mod_exp()
382 bn_result) != GPG_ERR_NO_ERROR) in crypto_mod_exp()
391 gcry_mpi_release(bn_result); in crypto_mod_exp()
Dcrypto_openssl.c594 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local
605 bn_result = BN_new(); in crypto_mod_exp()
608 bn_result == NULL) in crypto_mod_exp()
611 if (BN_mod_exp_mont_consttime(bn_result, bn_base, bn_exp, bn_modulus, in crypto_mod_exp()
615 *result_len = BN_bn2bin(bn_result, result); in crypto_mod_exp()
622 BN_clear_free(bn_result); in crypto_mod_exp()