Searched refs:bn_base (Results 1 – 4 of 4) sorted by relevance
/external/wpa_supplicant_8/src/crypto/ |
D | crypto_internal-modexp.c | 94 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local 97 bn_base = bignum_init(); in crypto_mod_exp() 102 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp() 106 if (bignum_set_unsigned_bin(bn_base, base, base_len) < 0 || in crypto_mod_exp() 111 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) in crypto_mod_exp() 117 bignum_deinit(bn_base); in crypto_mod_exp()
|
D | crypto_nettle.c | 380 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() 385 mpz_import(bn_base, base_len, 1, 1, 1, 0, base); in crypto_mod_exp() 389 mpz_powm(bn_result, bn_base, bn_exp, bn_modulus); in crypto_mod_exp() 398 mpz_clears(bn_base, bn_exp, bn_modulus, bn_result, NULL); in crypto_mod_exp()
|
D | crypto_gnutls.c | 366 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, in crypto_mod_exp() local 370 if (gcry_mpi_scan(&bn_base, GCRYMPI_FMT_USG, base, base_len, NULL) != in crypto_mod_exp() 379 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus); in crypto_mod_exp() 388 gcry_mpi_release(bn_base); in crypto_mod_exp()
|
D | crypto_openssl.c | 603 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local 611 bn_base = BN_bin2bn(base, base_len, NULL); in crypto_mod_exp() 616 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp() 620 if (BN_mod_exp_mont_consttime(bn_result, bn_base, bn_exp, bn_modulus, in crypto_mod_exp() 628 BN_clear_free(bn_base); in crypto_mod_exp()
|