Searched refs:bn_exp (Results 1 – 9 of 9) sorted by relevance
/freebsd/contrib/wpa/src/crypto/ |
H A D | crypto_internal-modexp.c | 94 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local 98 bn_exp = bignum_init(); in crypto_mod_exp() 102 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp() 107 bignum_set_unsigned_bin(bn_exp, power, power_len) < 0 || in crypto_mod_exp() 111 if (bignum_exptmod(bn_base, bn_exp, bn_modulus, bn_result) < 0) in crypto_mod_exp() 118 bignum_deinit(bn_exp); in crypto_mod_exp()
|
H A D | crypto_nettle.c | 380 mpz_t bn_base, bn_exp, bn_modulus, bn_result; in crypto_mod_exp() local 384 mpz_inits(bn_base, bn_exp, bn_modulus, bn_result, NULL); in crypto_mod_exp() 386 mpz_import(bn_exp, power_len, 1, 1, 1, 0, power); in crypto_mod_exp() 389 mpz_powm(bn_result, bn_base, bn_exp, bn_modulus); in crypto_mod_exp() 398 mpz_clears(bn_base, bn_exp, bn_modulus, bn_result, NULL); in crypto_mod_exp()
|
H A D | crypto_gnutls.c | 366 gcry_mpi_t bn_base = NULL, bn_exp = NULL, bn_modulus = NULL, in crypto_mod_exp() local 372 gcry_mpi_scan(&bn_exp, GCRYMPI_FMT_USG, power, power_len, NULL) != in crypto_mod_exp() 379 gcry_mpi_powm(bn_result, bn_base, bn_exp, bn_modulus); in crypto_mod_exp() 389 gcry_mpi_release(bn_exp); in crypto_mod_exp()
|
H A D | crypto_openssl.c | 814 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp() local 823 bn_exp = BN_bin2bn(power, power_len, NULL); in crypto_mod_exp() 827 if (bn_base == NULL || bn_exp == NULL || bn_modulus == NULL || in crypto_mod_exp() 831 if (BN_mod_exp_mont_consttime(bn_result, bn_base, bn_exp, bn_modulus, in crypto_mod_exp() 840 BN_clear_free(bn_exp); in crypto_mod_exp()
|
/freebsd/crypto/openssl/crypto/bn/ |
H A D | build.info | 104 $COMMON=bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c \ 123 INCLUDE[bn_exp.o]=..
|
/freebsd/crypto/openssl/providers/ |
H A D | fips.module.sources | 80 crypto/bn/bn_exp.c
|
H A D | fips-sources.checksums | 80 49e59eac540db304ab0ca7bee3ba9d45f89548fff98155561bbdb6602d0aab1d crypto/bn/bn_exp.c
|
/freebsd/secure/lib/libcrypto/ |
H A D | Makefile | 98 SRCS+= bn_div.c bn_err.c bn_exp.c bn_exp2.c bn_gcd.c bn_gf2m.c bn_intern.c
|
/freebsd/crypto/openssl/ |
H A D | CHANGES.md | 14462 * Use BN_nnmod instead of BN_mod in crypto/bn/bn_exp.c so that 14475 (except for exponentiation, which stays in `crypto/bn/bn_exp.c`,
|