Home
last modified time | relevance | path

Searched refs:bn_modulus (Results 1 – 7 of 7) sorted by relevance

/external/wpa_supplicant_8/src/crypto/
Dcrypto_internal-modexp.c27 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local
32 bn_modulus = bignum_init(); in crypto_mod_exp()
35 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp()
41 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0) in crypto_mod_exp()
44 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) in crypto_mod_exp()
52 bignum_deinit(bn_modulus); in crypto_mod_exp()
Dcrypto_gnutls.c165 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, in crypto_mod_exp() local
173 gcry_mpi_scan(&bn_modulus, GCRYMPI_FMT_USG, modulus, modulus_len, in crypto_mod_exp()
178 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus); in crypto_mod_exp()
189 gcry_mpi_release(bn_modulus); in crypto_mod_exp()
Dcrypto_openssl.c267 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local
277 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); in crypto_mod_exp()
280 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp()
284 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1) in crypto_mod_exp()
293 BN_free(bn_modulus); in crypto_mod_exp()
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/
Dcrypto_openssl.c217 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local
227 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); in crypto_mod_exp()
230 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp()
234 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1) in crypto_mod_exp()
243 BN_free(bn_modulus); in crypto_mod_exp()
Dcrypto_gnutls.c171 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, in crypto_mod_exp() local
179 gcry_mpi_scan(&bn_modulus, GCRYMPI_FMT_USG, modulus, modulus_len, in crypto_mod_exp()
184 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus); in crypto_mod_exp()
195 gcry_mpi_release(bn_modulus); in crypto_mod_exp()
Dcrypto_internal.c803 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local
808 bn_modulus = bignum_init(); in crypto_mod_exp()
811 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp()
817 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0) in crypto_mod_exp()
820 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) in crypto_mod_exp()
828 bignum_deinit(bn_modulus); in crypto_mod_exp()
/external/wpa_supplicant/
Dcrypto_internal.c635 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local
640 bn_modulus = bignum_init(); in crypto_mod_exp()
643 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp()
649 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0) in crypto_mod_exp()
652 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) in crypto_mod_exp()
660 bignum_deinit(bn_modulus); in crypto_mod_exp()