HomeSort by: relevance | last modified time | path
    Searched refs:bn_modulus (Results 1 - 4 of 4) sorted by relevancy

  /src/external/bsd/wpa/dist/src/crypto/
crypto_internal-modexp.c 94 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; local
99 bn_modulus = bignum_init();
102 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL ||
108 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0)
111 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0)
119 bignum_deinit(bn_modulus);
crypto_nettle.c 380 mpz_t bn_base, bn_exp, bn_modulus, bn_result; local
384 mpz_inits(bn_base, bn_exp, bn_modulus, bn_result, NULL);
387 mpz_import(bn_modulus, modulus_len, 1, 1, 1, 0, modulus);
389 mpz_powm(bn_result, bn_base, bn_exp, bn_modulus);
398 mpz_clears(bn_base, bn_exp, bn_modulus, bn_result, NULL);
crypto_gnutls.c 366 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, local
374 gcry_mpi_scan(&bn_modulus, GCRYMPI_FMT_USG, modulus, modulus_len,
379 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus);
390 gcry_mpi_release(bn_modulus);
crypto_openssl.c 814 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; local
824 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL);
827 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL ||
831 if (BN_mod_exp_mont_consttime(bn_result, bn_base, bn_exp, bn_modulus,
841 BN_clear_free(bn_modulus);

Completed in 21 milliseconds