Searched refs:bn_base (Results 1 - 3 of 3) sorted by relevance
/freebsd-9.3-release/contrib/wpa/src/crypto/ |
H A D | crypto_internal-modexp.c | 27 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; local 30 bn_base = bignum_init(); 35 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || 39 if (bignum_set_unsigned_bin(bn_base, base, base_len) < 0 || 44 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) 50 bignum_deinit(bn_base);
|
H A D | crypto_gnutls.c | 165 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, local 169 if (gcry_mpi_scan(&bn_base, GCRYMPI_FMT_USG, base, base_len, NULL) != 178 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus); 187 gcry_mpi_release(bn_base);
|
H A D | crypto_openssl.c | 267 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; local 275 bn_base = BN_bin2bn(base, base_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) 291 BN_free(bn_base);
|
Completed in 57 milliseconds