Searched refs:bn_base (Results 1 – 3 of 3) sorted by relevance
| /trueos/contrib/wpa/src/crypto/ |
| HD | crypto_internal-modexp.c | 21 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local 24 bn_base = bignum_init(); in crypto_mod_exp() 29 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp() 33 if (bignum_set_unsigned_bin(bn_base, base, base_len) < 0 || in crypto_mod_exp() 38 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) in crypto_mod_exp() 44 bignum_deinit(bn_base); in crypto_mod_exp()
|
| HD | crypto_gnutls.c | 159 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, in crypto_mod_exp() local 163 if (gcry_mpi_scan(&bn_base, GCRYMPI_FMT_USG, base, base_len, NULL) != in crypto_mod_exp() 172 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus); in crypto_mod_exp() 181 gcry_mpi_release(bn_base); in crypto_mod_exp()
|
| HD | crypto_openssl.c | 314 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local 322 bn_base = BN_bin2bn(base, base_len, NULL); in crypto_mod_exp() 327 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp() 331 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1) in crypto_mod_exp() 338 BN_free(bn_base); in crypto_mod_exp()
|