Home
last modified time | relevance | path

Searched refs:bn_result (Results 1 – 3 of 3) sorted by relevance

/external/wpa_supplicant_8/src/crypto/
Dcrypto_internal-modexp.c21 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local
27 bn_result = bignum_init(); in crypto_mod_exp()
30 bn_result == NULL) in crypto_mod_exp()
38 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) in crypto_mod_exp()
41 ret = bignum_get_unsigned_bin(bn_result, result, result_len); in crypto_mod_exp()
47 bignum_deinit(bn_result); in crypto_mod_exp()
Dcrypto_gnutls.c160 bn_result = NULL; in crypto_mod_exp() local
170 bn_result = gcry_mpi_new(modulus_len * 8); in crypto_mod_exp()
172 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus); in crypto_mod_exp()
175 bn_result) != GPG_ERR_NO_ERROR) in crypto_mod_exp()
184 gcry_mpi_release(bn_result); in crypto_mod_exp()
Dcrypto_openssl.c475 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local
486 bn_result = BN_new(); in crypto_mod_exp()
489 bn_result == NULL) in crypto_mod_exp()
492 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1) in crypto_mod_exp()
495 *result_len = BN_bn2bin(bn_result, result); in crypto_mod_exp()
502 BN_clear_free(bn_result); in crypto_mod_exp()