/external/wpa_supplicant_8/src/crypto/ |
crypto_internal-modexp.c | 27 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; local 32 bn_modulus = bignum_init(); 35 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || 41 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0) 44 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) 52 bignum_deinit(bn_modulus);
|
crypto_gnutls.c | 165 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, local 173 gcry_mpi_scan(&bn_modulus, GCRYMPI_FMT_USG, modulus, modulus_len, 178 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus); 189 gcry_mpi_release(bn_modulus);
|
crypto_openssl.c | 267 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; local 277 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); 280 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || 284 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1) 293 BN_free(bn_modulus);
|
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/ |
crypto_gnutls.c | 171 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, local 179 gcry_mpi_scan(&bn_modulus, GCRYMPI_FMT_USG, modulus, modulus_len, 184 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus); 195 gcry_mpi_release(bn_modulus);
|
crypto_openssl.c | 217 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; local 227 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); 230 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || 234 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1) 243 BN_free(bn_modulus);
|
crypto_internal.c | 803 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; local 808 bn_modulus = bignum_init(); 811 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || 817 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0) 820 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) 828 bignum_deinit(bn_modulus);
|
/external/wpa_supplicant/ |
crypto_internal.c | 635 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; local 640 bn_modulus = bignum_init(); 643 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || 649 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0) 652 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) 660 bignum_deinit(bn_modulus);
|