Home
last modified time | relevance | path

Searched refs:bn_modulus (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
26 bn_modulus = bignum_init(); in crypto_mod_exp()
29 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp()
35 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0) in crypto_mod_exp()
38 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) in crypto_mod_exp()
46 bignum_deinit(bn_modulus); in crypto_mod_exp()
Dcrypto_gnutls.c159 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, in crypto_mod_exp() local
167 gcry_mpi_scan(&bn_modulus, GCRYMPI_FMT_USG, modulus, modulus_len, in crypto_mod_exp()
172 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus); in crypto_mod_exp()
183 gcry_mpi_release(bn_modulus); in crypto_mod_exp()
Dcrypto_openssl.c319 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local
329 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); in crypto_mod_exp()
332 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp()
336 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1) in crypto_mod_exp()
345 BN_clear_free(bn_modulus); in crypto_mod_exp()