nettle
3.7.3
About: Nettle is a low-level cryptographic library.
![]() ![]() |
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | __mpz_struct |
Macros | |
#define | MINI_GMP_LIMB_TYPE long |
#define | mpn_invert_limb(x) mpn_invert_3by2 ((x), 0) |
#define | mpz_odd_p(z) (((z)->_mp_size != 0) & (int) (z)->_mp_d[0]) |
#define | mpz_even_p(z) (! mpz_odd_p (z)) |
#define | MPZ_ROINIT_N(xp, xs) {{0, (xs),(xp) }} |
Typedefs | |
typedef unsigned long | mp_limb_t |
typedef long | mp_size_t |
typedef unsigned long | mp_bitcnt_t |
typedef mp_limb_t * | mp_ptr |
typedef const mp_limb_t * | mp_srcptr |
typedef __mpz_struct | mpz_t[1] |
typedef __mpz_struct * | mpz_ptr |
typedef const __mpz_struct * | mpz_srcptr |
Variables | |
const int | mp_bits_per_limb |
#define MINI_GMP_LIMB_TYPE long |
Definition at line 57 of file mini-gmp.h.
#define mpn_invert_limb | ( | x | ) | mpn_invert_3by2 ((x), 0) |
Definition at line 121 of file mini-gmp.h.
#define mpz_even_p | ( | z | ) | (! mpz_odd_p (z)) |
Definition at line 131 of file mini-gmp.h.
#define mpz_odd_p | ( | z | ) | (((z)->_mp_size != 0) & (int) (z)->_mp_d[0]) |
Definition at line 130 of file mini-gmp.h.
Definition at line 264 of file mini-gmp.h.
typedef unsigned long mp_bitcnt_t |
Definition at line 62 of file mini-gmp.h.
typedef unsigned long mp_limb_t |
Definition at line 60 of file mini-gmp.h.
Definition at line 64 of file mini-gmp.h.
typedef long mp_size_t |
Definition at line 61 of file mini-gmp.h.
Definition at line 65 of file mini-gmp.h.
typedef __mpz_struct* mpz_ptr |
Definition at line 79 of file mini-gmp.h.
typedef const __mpz_struct* mpz_srcptr |
Definition at line 80 of file mini-gmp.h.
typedef __mpz_struct mpz_t[1] |
Definition at line 77 of file mini-gmp.h.
void mp_get_memory_functions | ( | void * | **)(size_t, |
void * | **)(void *, size_t, size_t, | ||
void(**)(void *, size_t) | |||
) |
void mp_set_memory_functions | ( | void * | *)(size_t, |
void * | *)(void *, size_t, size_t, | ||
void(*)(void *, size_t) | |||
) |
Definition at line 468 of file mini-gmp.c.
References ap, bp, mpn_add_1(), mpn_add_n(), and rp.
Referenced by mpz_abs_add().
Definition at line 430 of file mini-gmp.c.
Referenced by mpn_add(), mpn_set_str_other(), mpz_abs_add_bit(), nettle_ecc_gostdsa_sign(), and nettle_ecc_gostdsa_verify().
Definition at line 449 of file mini-gmp.c.
Referenced by _nettle_ecc_mod(), _nettle_ecc_mod_add(), _nettle_ecc_pp1_redc(), _nettle_rsa_sec_compute_root(), mpn_add(), and mpn_div_qr_pi1().
Definition at line 556 of file mini-gmp.c.
References gmp_umul_ppmm, rp, and up.
Referenced by _nettle_ecc_mod(), _nettle_ecc_mod_addmul_1(), _nettle_ecc_mod_mul_1(), _nettle_ecc_pm1_redc(), _nettle_ecc_pp1_redc(), _nettle_eddsa_hash(), ecc_curve25519_modp(), ecc_secp521r1_modp(), and mpn_mul().
Definition at line 389 of file mini-gmp.c.
Referenced by _nettle_eddsa_verify(), _nettle_mpz_limbs_cmp(), ecdsa_in_range(), equal_h(), mpn_cmp4(), mpz_cmp(), nettle_ecc_ecdsa_verify(), and nettle_ecc_gostdsa_verify().
Definition at line 382 of file mini-gmp.c.
Referenced by _nettle_ecc_a_to_j(), mpn_sqrtrem(), and mpz_mul_2exp().
Definition at line 374 of file mini-gmp.c.
References i.
Referenced by _nettle_ecc_a_to_j(), _nettle_ecc_mod(), _nettle_ecc_mod_inv(), _nettle_ecc_mul_m(), _nettle_eddsa_decompress(), _nettle_eddsa_verify(), _nettle_mpz_limbs_copy(), _nettle_mpz_set_n(), _nettle_rsa_sec_compute_root(), mpz_div_q_2exp(), mpz_div_r_2exp(), mpz_get_str(), mpz_set(), mpz_sizeinbase(), nettle_rsa_compute_root_tr(), rsa_sec_blind(), rsa_sec_unblind(), and sec_powm().
Definition at line 1297 of file mini-gmp.c.
References mpn_base_power_of_two_p(), mpn_get_base_info(), mpn_get_str_bits(), mpn_get_str_other(), sp, and up.
Definition at line 771 of file mini-gmp.c.
References GMP_LIMB_BITS, GMP_LIMB_MAX, GMP_LLIMB_MASK, gmp_umul_ppmm, and u1.
Referenced by mpn_div_qr_2_invert(), and mpn_div_qr_invert().
Definition at line 645 of file mini-gmp.c.
References GMP_LIMB_BITS, rp, and up.
Referenced by mpn_div_qr(), mpn_div_qr_1_preinv(), mpn_div_qr_2_preinv(), mpn_div_qr_preinv(), mpz_mul_2exp(), and mpz_powm().
Definition at line 608 of file mini-gmp.c.
References GMP_MPN_OVERLAP_P, mpn_addmul_1(), mpn_mul_1(), rp, up, and vp.
Referenced by mpn_mul_n(), mpn_sqr(), and mpz_mul().
Definition at line 533 of file mini-gmp.c.
References gmp_umul_ppmm, rp, and up.
Referenced by _nettle_ecc_mod_mul_1(), mpn_mul(), and mpn_set_str_other().
Definition at line 633 of file mini-gmp.c.
References ap, bp, mpn_mul(), and rp.
Referenced by _nettle_ecc_mod_mul(), and _nettle_ecc_mod_mul_canonical().
Definition at line 749 of file mini-gmp.c.
References mpn_com(), rp, and up.
Referenced by mpz_div_r_2exp().
Definition at line 3280 of file mini-gmp.c.
References mpz_roinit_normal_n(), mpz_root(), and NULL.
mp_bitcnt_t mpn_popcount | ( | mp_srcptr | p, |
mp_size_t | n | ||
) |
Definition at line 4023 of file mini-gmp.c.
References gmp_popcount_limb(), and i.
Referenced by mpz_popcount().
Definition at line 675 of file mini-gmp.c.
References GMP_LIMB_BITS, rp, and up.
Referenced by _nettle_ecc_hash(), _nettle_ecc_mod_inv(), mpn_div_qr_preinv(), and mpz_div_q_2exp().
mp_bitcnt_t mpn_scan0 | ( | mp_srcptr | ptr, |
mp_bitcnt_t | bit | ||
) |
Definition at line 732 of file mini-gmp.c.
References GMP_LIMB_BITS, GMP_LIMB_MAX, i, and mpn_common_scan().
mp_bitcnt_t mpn_scan1 | ( | mp_srcptr | ptr, |
mp_bitcnt_t | bit | ||
) |
Definition at line 722 of file mini-gmp.c.
References GMP_LIMB_BITS, GMP_LIMB_MAX, i, and mpn_common_scan().
Definition at line 1388 of file mini-gmp.c.
References mpn_base_power_of_two_p(), mpn_get_base_info(), mpn_set_str_bits(), mpn_set_str_other(), rp, and sp.
Definition at line 639 of file mini-gmp.c.
References ap, mpn_mul(), and rp.
Referenced by _nettle_ecc_mod_sqr(), and _nettle_ecc_mod_sqr_canonical().
Definition at line 3290 of file mini-gmp.c.
References mpn_copyd(), mpz_clear(), mpz_init(), mpz_roinit_normal_n(), mpz_rootrem(), rp, and sp.
Definition at line 520 of file mini-gmp.c.
References ap, bp, mpn_sub_1(), mpn_sub_n(), and rp.
Referenced by mpz_abs_sub(), and mpz_powm().
Definition at line 481 of file mini-gmp.c.
Referenced by mpn_sub(), and mpz_abs_sub_bit().
Definition at line 502 of file mini-gmp.c.
Referenced by _nettle_ecc_j_to_a(), _nettle_ecc_mod_mul_canonical(), _nettle_ecc_mod_sqr_canonical(), _nettle_ecc_mod_sub(), _nettle_ecc_pm1_redc(), _nettle_eddsa_decompress(), _nettle_eddsa_hash(), _nettle_rsa_sec_compute_root(), ecc_curve25519_zero_p(), ecc_curve448_zero_p(), ecdsa_in_range(), mpn_sub(), nettle_ecc_gostdsa_sign(), and nettle_ecc_gostdsa_verify().
Definition at line 582 of file mini-gmp.c.
References gmp_umul_ppmm, rp, and up.
Referenced by _nettle_ecc_mod_submul_1(), _nettle_ecc_pm1_redc(), _nettle_eddsa_sign(), ecc_curve25519_modq(), and mpn_div_qr_pi1().
Definition at line 423 of file mini-gmp.c.
References rp.
Referenced by _nettle_ecc_a_to_j(), _nettle_ecc_j_to_a(), _nettle_ecc_mod_inv(), _nettle_ecc_mul_g(), _nettle_ecc_mul_g_eh(), _nettle_ecc_mul_m(), _nettle_mpn_set_base256(), _nettle_mpn_set_base256_le(), _nettle_mpz_limbs_copy(), _nettle_mpz_limbs_read_n(), _nettle_rsa_sec_compute_root_tr(), _nettle_sec_tabselect(), mpz_mul_2exp(), and table_init().
Definition at line 417 of file mini-gmp.c.
References mpn_normalized_size(), and rp.
Referenced by ecdsa_in_range(), mpz_div_q_2exp(), mpz_scan0(), mpz_scan1(), nettle_ecc_ecdsa_verify(), nettle_ecc_gostdsa_sign(), nettle_ecc_gostdsa_verify(), nettle_gostdsa_sign(), and nettle_gostdsa_vko().
void mpz_2fac_ui | ( | mpz_t | x, |
unsigned long | n | ||
) |
Definition at line 3324 of file mini-gmp.c.
References mpz_mfac_uiui(), and x.
void mpz_abs | ( | mpz_t | r, |
const | mpz_t | ||
) |
Definition at line 1912 of file mini-gmp.c.
References GMP_ABS, and mpz_set().
Referenced by mpz_gcd(), mpz_gcdext(), mpz_lcm(), mpz_lcm_ui(), mpz_powm(), and mpz_probab_prime_p().
void mpz_add | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2008 of file mini-gmp.c.
References mpz_abs_add(), and mpz_abs_sub().
Referenced by _nettle_generate_pocklington_prime(), gmp_lucas_mod(), mpz_add_ui(), mpz_addmul(), mpz_addmul_ui(), mpz_div_qr(), mpz_gcdext(), mpz_invert(), mpz_rootrem(), nettle_dsa_sign(), and nettle_ecc_point_set().
void mpz_add_ui | ( | mpz_t | r, |
const | mpz_t, | ||
unsigned long | b | ||
) |
Definition at line 1938 of file mini-gmp.c.
References mpn_base_info::bb, mpz_add(), mpz_clear(), and mpz_init_set_ui().
Referenced by _nettle_generate_pocklington_prime(), ecc_add(), mpz_com(), mpz_div_q_2exp(), mpz_div_qr(), mpz_ui_sub(), nettle_dsa_generate_keypair(), nettle_dsa_sign(), nettle_ecc_point_set(), and output_curve().
void mpz_addmul | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2150 of file mini-gmp.c.
References mpz_add(), mpz_clear(), mpz_init(), mpz_mul(), and v.
Referenced by ecc_add().
void mpz_addmul_ui | ( | mpz_t | r, |
const | mpz_t, | ||
unsigned long int | v | ||
) |
Definition at line 2130 of file mini-gmp.c.
References mpz_add(), mpz_clear(), mpz_init_set_ui(), mpz_mul(), and v.
void mpz_and | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 3787 of file mini-gmp.c.
References GMP_ABS, i, MP_SIZE_T_SWAP, mpn_normalized_size(), MPZ_REALLOC, MPZ_SRCPTR_SWAP, rp, up, v, and vp.
Referenced by output_digits().
void mpz_bin_uiui | ( | mpz_t | r, |
unsigned long | n, | ||
unsigned long | k | ||
) |
Definition at line 3336 of file mini-gmp.c.
References k, mpz_clear(), mpz_divexact(), mpz_fac_ui(), mpz_init(), mpz_mul_ui(), and mpz_set_ui().
void mpz_cdiv_q | ( | mpz_t | q, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2305 of file mini-gmp.c.
References GMP_DIV_CEIL, mpz_div_qr(), and NULL.
void mpz_cdiv_q_2exp | ( | mpz_t | r, |
const | mpz_t, | ||
mp_bitcnt_t | cnt | ||
) |
Definition at line 2471 of file mini-gmp.c.
References GMP_DIV_CEIL, and mpz_div_q_2exp().
unsigned long mpz_cdiv_q_ui | ( | mpz_t | q, |
const | mpz_t, | ||
unsigned long | d | ||
) |
Definition at line 2575 of file mini-gmp.c.
References GMP_DIV_CEIL, mpz_div_qr_ui(), and NULL.
Definition at line 2287 of file mini-gmp.c.
References GMP_DIV_CEIL, and mpz_div_qr().
Definition at line 2557 of file mini-gmp.c.
References GMP_DIV_CEIL, and mpz_div_qr_ui().
void mpz_cdiv_r | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2323 of file mini-gmp.c.
References GMP_DIV_CEIL, mpz_div_qr(), and NULL.
void mpz_cdiv_r_2exp | ( | mpz_t | r, |
const | mpz_t, | ||
mp_bitcnt_t | cnt | ||
) |
Definition at line 2489 of file mini-gmp.c.
References GMP_DIV_CEIL, and mpz_div_r_2exp().
unsigned long mpz_cdiv_r_ui | ( | mpz_t | r, |
const | mpz_t, | ||
unsigned long | d | ||
) |
Definition at line 2593 of file mini-gmp.c.
References GMP_DIV_CEIL, mpz_div_qr_ui(), and NULL.
unsigned long mpz_cdiv_ui | ( | const | mpz_t, |
unsigned long | d | ||
) |
Definition at line 2609 of file mini-gmp.c.
References GMP_DIV_CEIL, mpz_div_qr_ui(), and NULL.
void mpz_clear | ( | mpz_t | r | ) |
Definition at line 1435 of file mini-gmp.c.
References gmp_free.
Referenced by _nettle_generate_pocklington_prime(), _nettle_rsa_blind(), _nettle_rsa_verify(), convert_dsa_private_key(), convert_public_key(), ecc_add(), ecc_clear(), ecc_curve_check(), ecc_curve_clear(), ecc_dup(), ecc_mul_pippenger(), gmp_lucas_mod(), miller_rabin_pocklington(), mpn_sqrtrem(), mpz_add_ui(), mpz_addmul(), mpz_addmul_ui(), mpz_bin_uiui(), mpz_congruent_p(), mpz_div_qr(), mpz_div_qr_ui(), mpz_gcd(), mpz_gcd_ui(), mpz_gcdext(), mpz_invert(), mpz_lcm(), mpz_mul(), mpz_mul_ui(), mpz_pow_ui(), mpz_powm(), mpz_powm_ui(), mpz_probab_prime_p(), mpz_root(), mpz_rootrem(), mpz_submul(), mpz_submul_ui(), mpz_ui_pow_ui(), nettle_dsa_generate_keypair(), nettle_dsa_generate_params(), nettle_dsa_params_clear(), nettle_dsa_private_key_clear(), nettle_dsa_public_key_clear(), nettle_dsa_sign(), nettle_dsa_signature_clear(), nettle_dsa_verify(), nettle_ecc_point_set(), nettle_mpz_get_str_256(), nettle_mpz_set_str_256_s(), nettle_mpz_sizeinbase_256_s(), nettle_pgp_put_rsa_sha1_signature(), nettle_random_prime(), nettle_rsa_decrypt(), nettle_rsa_generate_keypair(), nettle_rsa_md5_sign_digest_tr(), nettle_rsa_md5_sign_tr(), nettle_rsa_md5_verify(), nettle_rsa_md5_verify_digest(), nettle_rsa_pkcs1_sign_tr(), nettle_rsa_pkcs1_verify(), nettle_rsa_private_key_clear(), nettle_rsa_private_key_prepare(), nettle_rsa_pss_sha256_sign_digest_tr(), nettle_rsa_pss_sha256_verify_digest(), nettle_rsa_pss_sha384_sign_digest_tr(), nettle_rsa_pss_sha384_verify_digest(), nettle_rsa_pss_sha512_sign_digest_tr(), nettle_rsa_pss_sha512_verify_digest(), nettle_rsa_public_key_clear(), nettle_rsa_sha1_sign_digest_tr(), nettle_rsa_sha1_sign_tr(), nettle_rsa_sha1_verify(), nettle_rsa_sha1_verify_digest(), nettle_rsa_sha256_sign_digest_tr(), nettle_rsa_sha256_sign_tr(), nettle_rsa_sha256_verify(), nettle_rsa_sha256_verify_digest(), nettle_rsa_sha512_sign_digest_tr(), nettle_rsa_sha512_sign_tr(), nettle_rsa_sha512_verify(), nettle_rsa_sha512_verify_digest(), output_curve(), output_digits(), output_modulo(), and output_point().
void mpz_clrbit | ( | mpz_t | d, |
mp_bitcnt_t | bit_index | ||
) |
Definition at line 3759 of file mini-gmp.c.
References mpz_abs_add_bit(), mpz_abs_sub_bit(), and mpz_tstbit().
Referenced by output_curve().
int mpz_cmp | ( | const | mpz_t, |
const | mpz_t | ||
) |
Definition at line 1877 of file mini-gmp.c.
References mpn_cmp().
Referenced by _nettle_rsa_verify(), _nettle_rsa_verify_recover(), ecc_add(), ecc_equal_p(), gmp_millerrabin(), miller_rabin_pocklington(), mpz_congruent_p(), mpz_gcd(), mpz_gcdext(), mpz_probab_prime_p(), nettle_dsa_keypair_from_sexp_alist(), nettle_dsa_openssl_private_key_from_der_iterator(), nettle_dsa_params_from_der_iterator(), nettle_dsa_public_key_from_der_iterator(), nettle_dsa_verify(), nettle_rsa_decrypt(), nettle_rsa_decrypt_tr(), nettle_rsa_sec_decrypt(), and output_curve().
int mpz_cmp_d | ( | const | mpz_t, |
double | d | ||
) |
Definition at line 1826 of file mini-gmp.c.
References mpz_cmpabs_d(), and x.
int mpz_cmp_si | ( | const | mpz_t, |
long | v | ||
) |
Definition at line 1853 of file mini-gmp.c.
References GMP_NEG_CAST, mpz_cmp_ui(), mpz_cmpabs_ui(), and v.
Referenced by mpz_fits_sint_p(), mpz_fits_slong_p(), and mpz_fits_sshort_p().
int mpz_cmp_ui | ( | const | mpz_t, |
unsigned long | v | ||
) |
Definition at line 1866 of file mini-gmp.c.
References mpz_cmpabs_ui(), and v.
Referenced by ecc_add(), gmp_lucas_mod(), gmp_millerrabin(), miller_rabin_pocklington(), mpz_cmp_si(), mpz_invert(), nettle_dsa_generate_params(), nettle_rsa_generate_keypair(), and output_curve().
int mpz_cmpabs | ( | const | mpz_t, |
const | mpz_t | ||
) |
Definition at line 1905 of file mini-gmp.c.
References GMP_ABS, mpn_cmp4(), and v.
Referenced by mpz_gcdext(), and mpz_rootrem().
int mpz_cmpabs_d | ( | const | mpz_t, |
double | d | ||
) |
Definition at line 1785 of file mini-gmp.c.
References B, GMP_ABS, GMP_LIMB_HIGHBIT, i, and x.
Referenced by mpz_cmp_d().
int mpz_cmpabs_ui | ( | const | mpz_t, |
unsigned long | v | ||
) |
Definition at line 1891 of file mini-gmp.c.
References GMP_ABS, GMP_CMP, mpn_absfits_ulong_p(), mpz_get_ui(), and v.
Referenced by mpz_cmp_si(), mpz_cmp_ui(), mpz_fits_uint_p(), mpz_fits_ushort_p(), mpz_invert(), mpz_probab_prime_p(), and mpz_rootrem().
void mpz_com | ( | mpz_t | r, |
const | mpz_t | ||
) |
Definition at line 3780 of file mini-gmp.c.
References mpz_add_ui(), and mpz_neg().
Referenced by nettle_mpz_get_str_256(), and nettle_mpz_sizeinbase_256_s().
void mpz_combit | ( | mpz_t | d, |
mp_bitcnt_t | bit_index | ||
) |
Definition at line 3771 of file mini-gmp.c.
References mpz_abs_add_bit(), mpz_abs_sub_bit(), and mpz_tstbit().
int mpz_congruent_p | ( | const | mpz_t, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2519 of file mini-gmp.c.
References mpz_clear(), mpz_cmp(), mpz_divisible_p(), mpz_init(), mpz_sgn(), and mpz_sub().
Referenced by nettle_ecc_point_set().
void mpz_divexact | ( | mpz_t | q, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2507 of file mini-gmp.c.
References gmp_assert_nocarry, GMP_DIV_TRUNC, mpz_div_qr(), and NULL.
Referenced by mpz_bin_uiui(), mpz_gcdext(), and mpz_lcm().
void mpz_divexact_ui | ( | mpz_t | q, |
const | mpz_t, | ||
unsigned long | d | ||
) |
Definition at line 2633 of file mini-gmp.c.
References gmp_assert_nocarry, GMP_DIV_TRUNC, mpz_div_qr_ui(), and NULL.
int mpz_divisible_p | ( | const | mpz_t, |
const | mpz_t | ||
) |
Definition at line 2513 of file mini-gmp.c.
References GMP_DIV_TRUNC, mpz_div_qr(), and NULL.
Referenced by mpz_congruent_p().
int mpz_divisible_ui_p | ( | const | mpz_t, |
unsigned long | d | ||
) |
Definition at line 2639 of file mini-gmp.c.
References GMP_DIV_TRUNC, mpz_div_qr_ui(), and NULL.
void* mpz_export | ( | void * | r, |
size_t * | countp, | ||
int | order, | ||
size_t | size, | ||
int | endian, | ||
size_t | nails, | ||
const | mpz_t | ||
) |
Definition at line 4491 of file mini-gmp.c.
References GMP_ABS, gmp_detect_endian(), gmp_die(), GMP_LIMB_BITS, gmp_xalloc, i, j, and k.
void mpz_fac_ui | ( | mpz_t | x, |
unsigned long | n | ||
) |
Definition at line 3330 of file mini-gmp.c.
References mpz_mfac_uiui(), and x.
Referenced by mpz_bin_uiui().
void mpz_fdiv_q | ( | mpz_t | q, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2311 of file mini-gmp.c.
References GMP_DIV_FLOOR, mpz_div_qr(), and NULL.
Referenced by _nettle_generate_pocklington_prime().
void mpz_fdiv_q_2exp | ( | mpz_t | r, |
const | mpz_t, | ||
mp_bitcnt_t | cnt | ||
) |
Definition at line 2477 of file mini-gmp.c.
References GMP_DIV_FLOOR, and mpz_div_q_2exp().
Referenced by miller_rabin_pocklington(), and output_curve().
unsigned long mpz_fdiv_q_ui | ( | mpz_t | q, |
const | mpz_t, | ||
unsigned long | d | ||
) |
Definition at line 2581 of file mini-gmp.c.
References GMP_DIV_FLOOR, mpz_div_qr_ui(), and NULL.
Definition at line 2293 of file mini-gmp.c.
References GMP_DIV_FLOOR, and mpz_div_qr().
Definition at line 2563 of file mini-gmp.c.
References GMP_DIV_FLOOR, and mpz_div_qr_ui().
void mpz_fdiv_r | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2329 of file mini-gmp.c.
References GMP_DIV_FLOOR, mpz_div_qr(), and NULL.
Referenced by _nettle_rsa_blind(), _nettle_rsa_unblind(), nettle_dsa_sign(), nettle_dsa_verify(), nettle_mpz_random(), and nettle_rsa_generate_keypair().
void mpz_fdiv_r_2exp | ( | mpz_t | r, |
const | mpz_t, | ||
mp_bitcnt_t | cnt | ||
) |
Definition at line 2495 of file mini-gmp.c.
References GMP_DIV_FLOOR, and mpz_div_r_2exp().
Referenced by nettle_mpz_random_size().
unsigned long mpz_fdiv_r_ui | ( | mpz_t | r, |
const | mpz_t, | ||
unsigned long | d | ||
) |
Definition at line 2598 of file mini-gmp.c.
References GMP_DIV_FLOOR, mpz_div_qr_ui(), and NULL.
unsigned long mpz_fdiv_ui | ( | const | mpz_t, |
unsigned long | d | ||
) |
Definition at line 2615 of file mini-gmp.c.
References GMP_DIV_FLOOR, mpz_div_qr_ui(), and NULL.
Referenced by output_curve().
int mpz_fits_sint_p | ( | const | mpz_t | ) |
Definition at line 1568 of file mini-gmp.c.
References mpz_cmp_si().
int mpz_fits_slong_p | ( | const | mpz_t | ) |
Definition at line 1542 of file mini-gmp.c.
References mpz_cmp_si().
int mpz_fits_sshort_p | ( | const | mpz_t | ) |
Definition at line 1580 of file mini-gmp.c.
References mpz_cmp_si().
int mpz_fits_uint_p | ( | const | mpz_t | ) |
Definition at line 1574 of file mini-gmp.c.
References mpz_cmpabs_ui().
int mpz_fits_ulong_p | ( | const | mpz_t | ) |
Definition at line 1560 of file mini-gmp.c.
References mpn_absfits_ulong_p().
int mpz_fits_ushort_p | ( | const | mpz_t | ) |
Definition at line 1586 of file mini-gmp.c.
References mpz_cmpabs_ui().
void mpz_gcd | ( | mpz_t | g, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2720 of file mini-gmp.c.
References g(), GMP_MIN, mpn_gcd_11(), mpz_abs(), mpz_clear(), mpz_cmp(), mpz_init(), mpz_make_odd(), mpz_mul_2exp(), mpz_set_ui(), mpz_sub(), mpz_swap(), mpz_tdiv_r(), mpz_tdiv_ui(), and v.
Referenced by miller_rabin_pocklington(), mpz_gcd_ui(), mpz_lcm(), and nettle_rsa_generate_keypair().
unsigned long mpz_gcd_ui | ( | mpz_t | g, |
const | mpz_t, | ||
unsigned long | v | ||
) |
Definition at line 2690 of file mini-gmp.c.
References g(), mpz_clear(), mpz_gcd(), mpz_get_ui(), mpz_init_set_ui(), mpz_swap(), and v.
Referenced by mpz_lcm_ui(), and mpz_probab_prime_p().
Definition at line 2783 of file mini-gmp.c.
References g(), GMP_MIN, MP_BITCNT_T_SWAP, mpz_abs(), mpz_add(), mpz_clear(), mpz_cmp(), mpz_cmpabs(), mpz_divexact(), mpz_even_p, mpz_init(), mpz_make_odd(), mpz_mul_2exp(), mpz_neg(), mpz_odd_p, MPZ_PTR_SWAP, mpz_set_si(), mpz_setbit(), mpz_sgn(), MPZ_SRCPTR_SWAP, mpz_sub(), mpz_swap(), mpz_tdiv_q_2exp(), mpz_tdiv_qr(), s0, s1, t0, t1, and v.
Referenced by mpz_invert().
double mpz_get_d | ( | const | mpz_t | ) |
Definition at line 1747 of file mini-gmp.c.
References B, GMP_ABS, gmp_clz, GMP_DBL_MANT_BITS, GMP_LIMB_BITS, GMP_LIMB_HIGHBIT, GMP_LIMB_MAX, and x.
long int mpz_get_si | ( | const | mpz_t | ) |
Definition at line 1592 of file mini-gmp.c.
References mpz_get_ui().
char* mpz_get_str | ( | char * | sp, |
int | base, | ||
const | mpz_t | ||
) |
Definition at line 4220 of file mini-gmp.c.
References GMP_ABS, gmp_free, gmp_xalloc, gmp_xalloc_limbs(), i, mpn_base_power_of_two_p(), mpn_copyi(), mpn_get_base_info(), mpn_get_str_bits(), mpn_get_str_other(), mpz_sizeinbase(), NULL, sp, and tp.
Referenced by mpz_out_str().
unsigned long int mpz_get_ui | ( | const | mpz_t | ) |
Definition at line 1605 of file mini-gmp.c.
References GMP_ABS, GMP_LIMB_BITS, GMP_MIN, and GMP_ULONG_BITS.
Referenced by mpz_cmpabs_ui(), mpz_div_qr_ui(), mpz_gcd_ui(), and mpz_get_si().
Definition at line 1628 of file mini-gmp.c.
References GMP_ABS.
Referenced by nettle_mpz_to_octets().
mp_bitcnt_t mpz_hamdist | ( | const | mpz_t, |
const | mpz_t | ||
) |
Definition at line 4048 of file mini-gmp.c.
References gmp_popcount_limb(), i, MPN_SRCPTR_SWAP, up, v, and vp.
void mpz_import | ( | mpz_t | r, |
size_t | count, | ||
int | order, | ||
size_t | size, | ||
int | endian, | ||
size_t | nails, | ||
const void * | src | ||
) |
Definition at line 4423 of file mini-gmp.c.
References gmp_detect_endian(), gmp_die(), i, j, mpn_normalized_size(), MPZ_REALLOC, and rp.
void mpz_init | ( | mpz_t | r | ) |
Definition at line 1410 of file mini-gmp.c.
References GMP_LIMB_MAX.
Referenced by _nettle_generate_pocklington_prime(), _nettle_rsa_blind(), _nettle_rsa_verify(), convert_dsa_private_key(), convert_public_key(), ecc_add(), ecc_curve_check(), ecc_dup(), ecc_init(), ecc_mul_pippenger(), miller_rabin_pocklington(), mpn_sqrtrem(), mpz_addmul(), mpz_bin_uiui(), mpz_congruent_p(), mpz_div_qr_ui(), mpz_gcd(), mpz_gcdext(), mpz_init_set(), mpz_init_set_d(), mpz_init_set_si(), mpz_init_set_str(), mpz_init_set_ui(), mpz_invert(), mpz_lcm(), mpz_powm(), mpz_probab_prime_p(), mpz_root(), mpz_rootrem(), mpz_submul(), nettle_dsa_generate_params(), nettle_dsa_params_init(), nettle_dsa_private_key_init(), nettle_dsa_public_key_init(), nettle_dsa_sign(), nettle_dsa_signature_init(), nettle_dsa_verify(), nettle_ecc_point_set(), nettle_mpz_get_str_256(), nettle_mpz_init_set_str_256_s(), nettle_mpz_init_set_str_256_u(), nettle_mpz_sizeinbase_256_s(), nettle_pgp_put_rsa_sha1_signature(), nettle_random_prime(), nettle_rsa_decrypt(), nettle_rsa_generate_keypair(), nettle_rsa_md5_sign_digest_tr(), nettle_rsa_md5_sign_tr(), nettle_rsa_md5_verify(), nettle_rsa_md5_verify_digest(), nettle_rsa_pkcs1_sign_tr(), nettle_rsa_pkcs1_verify(), nettle_rsa_private_key_init(), nettle_rsa_private_key_prepare(), nettle_rsa_pss_sha256_sign_digest_tr(), nettle_rsa_pss_sha256_verify_digest(), nettle_rsa_pss_sha384_sign_digest_tr(), nettle_rsa_pss_sha384_verify_digest(), nettle_rsa_pss_sha512_sign_digest_tr(), nettle_rsa_pss_sha512_verify_digest(), nettle_rsa_public_key_init(), nettle_rsa_sha1_sign_digest_tr(), nettle_rsa_sha1_sign_tr(), nettle_rsa_sha1_verify(), nettle_rsa_sha1_verify_digest(), nettle_rsa_sha256_sign_digest_tr(), nettle_rsa_sha256_sign_tr(), nettle_rsa_sha256_verify(), nettle_rsa_sha256_verify_digest(), nettle_rsa_sha512_sign_digest_tr(), nettle_rsa_sha512_sign_tr(), nettle_rsa_sha512_verify(), nettle_rsa_sha512_verify_digest(), output_curve(), output_digits(), output_modulo(), and output_point().
void mpz_init2 | ( | mpz_t | r, |
mp_bitcnt_t | bits | ||
) |
Definition at line 1422 of file mini-gmp.c.
References GMP_LIMB_BITS, and gmp_xalloc_limbs().
Referenced by mpz_div_qr(), and mpz_mul().
void mpz_init_set | ( | mpz_t | r, |
const | mpz_t | ||
) |
Definition at line 1535 of file mini-gmp.c.
References mpz_init(), mpz_set(), and x.
Referenced by mpz_div_qr(), nettle_dsa_generate_keypair(), nettle_dsa_sign(), and output_digits().
void mpz_init_set_d | ( | mpz_t | r, |
double | x | ||
) |
Definition at line 1740 of file mini-gmp.c.
References mpz_init(), mpz_set_d(), and x.
void mpz_init_set_si | ( | mpz_t | r, |
signed long int | x | ||
) |
Definition at line 1521 of file mini-gmp.c.
References mpz_init(), mpz_set_si(), and x.
int mpz_init_set_str | ( | mpz_t | r, |
const char * | sp, | ||
int | base | ||
) |
Definition at line 4393 of file mini-gmp.c.
References mpz_init(), mpz_set_str(), and sp.
Referenced by ecc_curve_init_str().
void mpz_init_set_ui | ( | mpz_t | r, |
unsigned long int | x | ||
) |
Definition at line 1528 of file mini-gmp.c.
References mpz_init(), mpz_set_ui(), and x.
Referenced by gmp_lucas_mod(), mpz_add_ui(), mpz_addmul_ui(), mpz_div_qr_ui(), mpz_gcd_ui(), mpz_mul_ui(), mpz_pow_ui(), mpz_powm(), mpz_powm_ui(), mpz_probab_prime_p(), mpz_submul_ui(), mpz_ui_pow_ui(), nettle_ecc_point_set(), and nettle_mpz_set_str_256_s().
int mpz_invert | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 3002 of file mini-gmp.c.
References g(), mpz_add(), mpz_clear(), mpz_cmp_ui(), mpz_cmpabs_ui(), mpz_gcdext(), mpz_init(), mpz_sub(), mpz_swap(), and NULL.
Referenced by _nettle_rsa_blind(), ecc_add(), ecc_dup(), mpz_powm(), nettle_dsa_sign(), nettle_dsa_verify(), and nettle_rsa_generate_keypair().
void mpz_ior | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 3859 of file mini-gmp.c.
References GMP_ABS, i, MP_SIZE_T_SWAP, mpn_normalized_size(), MPZ_REALLOC, mpz_set(), MPZ_SRCPTR_SWAP, rp, up, v, and vp.
void mpz_lcm | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2966 of file mini-gmp.c.
References g(), mpz_abs(), mpz_clear(), mpz_divexact(), mpz_gcd(), mpz_init(), mpz_mul(), and v.
void mpz_lcm_ui | ( | mpz_t | r, |
const | mpz_t, | ||
unsigned long | v | ||
) |
Definition at line 2987 of file mini-gmp.c.
References mpz_abs(), mpz_gcd_ui(), mpz_mul_ui(), NULL, and v.
Definition at line 1662 of file mini-gmp.c.
References GMP_ABS, mpn_normalized_size(), and x.
Referenced by _nettle_mpz_set_n(), mpz_roinit_n(), nettle_ecdsa_sign(), nettle_gostdsa_sign(), nettle_rsa_compute_root(), and nettle_rsa_compute_root_tr().
Definition at line 1649 of file mini-gmp.c.
References MPZ_REALLOC, and x.
Referenced by _nettle_mpz_limbs_read_n(), and mpz_limbs_write().
mp_srcptr mpz_limbs_read | ( | mpz_srcptr | x | ) |
Definition at line 1643 of file mini-gmp.c.
References x.
Referenced by _nettle_mpz_limbs_cmp(), _nettle_mpz_limbs_copy(), _nettle_rsa_sec_compute_root(), rsa_sec_blind(), rsa_sec_check_root(), and rsa_sec_unblind().
Definition at line 1656 of file mini-gmp.c.
References mpz_limbs_modify(), and x.
Referenced by _nettle_mpz_set_n(), nettle_ecdsa_sign(), nettle_gostdsa_sign(), nettle_rsa_compute_root(), and nettle_rsa_compute_root_tr().
void mpz_mfac_uiui | ( | mpz_t | x, |
unsigned long | n, | ||
unsigned long | m | ||
) |
Definition at line 3315 of file mini-gmp.c.
References mpz_mul_ui(), mpz_set_ui(), and x.
Referenced by mpz_2fac_ui(), and mpz_fac_ui().
void mpz_mod | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2341 of file mini-gmp.c.
References GMP_DIV_CEIL, GMP_DIV_FLOOR, mpz_div_qr(), and NULL.
Referenced by ecc_add(), ecc_dup(), ecc_mul_pippenger(), gmp_lucas_step_k_2k(), output_curve(), output_modulo(), and output_point().
unsigned long mpz_mod_ui | ( | mpz_t | r, |
const | mpz_t, | ||
unsigned long | d | ||
) |
Definition at line 2627 of file mini-gmp.c.
References GMP_DIV_FLOOR, mpz_div_qr_ui(), and NULL.
void mpz_mul | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2058 of file mini-gmp.c.
References GMP_ABS, GMP_LIMB_BITS, mpn_mul(), mpz_clear(), mpz_init2(), mpz_swap(), tp, and v.
Referenced by _nettle_generate_pocklington_prime(), _nettle_rsa_blind(), _nettle_rsa_unblind(), ecc_add(), ecc_dup(), gmp_lucas_mod(), gmp_lucas_step_k_2k(), mpz_addmul(), mpz_addmul_ui(), mpz_lcm(), mpz_mul_ui(), mpz_pow_ui(), mpz_powm(), mpz_submul(), mpz_submul_ui(), nettle_dsa_generate_params(), nettle_dsa_sign(), nettle_dsa_verify(), nettle_ecc_point_set(), nettle_rsa_decrypt(), nettle_rsa_generate_keypair(), nettle_rsa_private_key_prepare(), and output_curve().
void mpz_mul_2exp | ( | mpz_t | r, |
const | mpz_t, | ||
mp_bitcnt_t | bits | ||
) |
Definition at line 2096 of file mini-gmp.c.
References GMP_ABS, GMP_LIMB_BITS, mpn_copyd(), mpn_lshift(), mpn_zero(), MPZ_REALLOC, and rp.
Referenced by _nettle_generate_pocklington_prime(), mpz_gcd(), mpz_gcdext(), nettle_mpz_set_str_256_s(), output_curve(), and output_point().
void mpz_mul_si | ( | mpz_t | r, |
const | mpz_t, | ||
long int | v | ||
) |
Definition at line 2036 of file mini-gmp.c.
References GMP_NEG_CAST, mpz_mul_ui(), mpz_neg(), and v.
Referenced by gmp_lucas_mod().
void mpz_mul_ui | ( | mpz_t | r, |
const | mpz_t, | ||
unsigned long int | v | ||
) |
Definition at line 2048 of file mini-gmp.c.
References mpz_clear(), mpz_init_set_ui(), mpz_mul(), and v.
Referenced by _nettle_generate_pocklington_prime(), ecc_dup(), mpz_bin_uiui(), mpz_lcm_ui(), mpz_mfac_uiui(), mpz_mul_si(), mpz_rootrem(), and nettle_ecc_point_set().
void mpz_neg | ( | mpz_t | r, |
const | mpz_t | ||
) |
Definition at line 1919 of file mini-gmp.c.
References mpz_set().
Referenced by mpz_com(), mpz_div_q_2exp(), mpz_gcdext(), mpz_mul_si(), mpz_rootrem(), mpz_set_si(), mpz_sub_ui(), and mpz_ui_sub().
int mpz_perfect_square_p | ( | const | mpz_t | ) |
Definition at line 3271 of file mini-gmp.c.
References mpz_root(), and NULL.
Referenced by _nettle_generate_pocklington_prime().
mp_bitcnt_t mpz_popcount | ( | const | mpz_t | ) |
Definition at line 4035 of file mini-gmp.c.
References mpn_popcount().
void mpz_pow_ui | ( | mpz_t | r, |
const | mpz_t, | ||
unsigned long | e | ||
) |
Definition at line 3037 of file mini-gmp.c.
References GMP_ULONG_HIGHBIT, mpz_clear(), mpz_init_set_ui(), mpz_mul(), and mpz_swap().
Referenced by mpz_rootrem(), and mpz_ui_pow_ui().
void mpz_powm | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 3068 of file mini-gmp.c.
References bp, GMP_ABS, gmp_assert_nocarry, gmp_die(), gmp_free, GMP_LIMB_HIGHBIT, gmp_xalloc_limbs(), mpn_div_qr_invert(), mpn_div_qr_preinv(), mpn_lshift(), mpn_normalized_size(), mpn_sub(), mpz_abs(), mpz_clear(), mpz_init(), mpz_init_set_ui(), mpz_invert(), mpz_mul(), MPZ_REALLOC, mpz_set_ui(), mpz_swap(), NULL, gmp_div_inverse::shift, tp, and w.
Referenced by _nettle_rsa_verify(), _nettle_rsa_verify_recover(), gmp_millerrabin(), miller_rabin_pocklington(), mpz_powm_ui(), nettle_dsa_generate_keypair(), nettle_dsa_generate_params(), nettle_dsa_verify(), nettle_rsa_encrypt(), and output_curve().
void mpz_powm_ui | ( | mpz_t | r, |
const | mpz_t, | ||
unsigned long | elimb, | ||
const | mpz_t | ||
) |
Definition at line 3173 of file mini-gmp.c.
References mpz_clear(), mpz_init_set_ui(), and mpz_powm().
Referenced by gmp_millerrabin(), and miller_rabin_pocklington().
int mpz_probab_prime_p | ( | const | mpz_t, |
int | reps | ||
) |
Definition at line 3561 of file mini-gmp.c.
References gmp_millerrabin(), GMP_PRIME_MASK, GMP_PRIME_PRODUCT, gmp_stronglucas(), j, k, mpz_abs(), mpz_clear(), mpz_cmp(), mpz_cmpabs_ui(), mpz_even_p, mpz_gcd_ui(), mpz_init(), mpz_init_set_ui(), mpz_scan1(), mpz_set_ui(), mpz_tdiv_q_2exp(), and NULL.
Referenced by _nettle_generate_pocklington_prime().
void mpz_realloc2 | ( | mpz_t | x, |
mp_bitcnt_t | n | ||
) |
Definition at line 1637 of file mini-gmp.c.
References GMP_LIMB_BITS, mpz_realloc(), and x.
mpz_srcptr mpz_roinit_n | ( | mpz_t | x, |
mp_srcptr | xp, | ||
mp_size_t | xs | ||
) |
Definition at line 1679 of file mini-gmp.c.
References mpz_limbs_finish(), mpz_roinit_normal_n(), x, and xp.
Referenced by nettle_ecc_point_set().
int mpz_root | ( | mpz_t | x, |
const | mpz_t, | ||
unsigned long | z | ||
) |
Definition at line 3244 of file mini-gmp.c.
References mpz_clear(), mpz_init(), mpz_rootrem(), and x.
Referenced by gmp_stronglucas(), mpn_perfect_square_p(), and mpz_perfect_square_p().
Definition at line 3184 of file mini-gmp.c.
References __mpz_struct::_mp_size, gmp_die(), mpz_add(), mpz_clear(), mpz_cmpabs(), mpz_cmpabs_ui(), mpz_init(), mpz_mul_ui(), mpz_neg(), mpz_pow_ui(), mpz_set(), mpz_setbit(), mpz_sizeinbase(), mpz_sub(), mpz_swap(), mpz_tdiv_q(), mpz_tdiv_q_2exp(), mpz_tdiv_q_ui(), v, and x.
Referenced by mpn_sqrtrem(), mpz_root(), mpz_sqrt(), and mpz_sqrtrem().
mp_bitcnt_t mpz_scan0 | ( | const | mpz_t, |
mp_bitcnt_t | starting_bit | ||
) |
Definition at line 4135 of file mini-gmp.c.
References GMP_ABS, GMP_LIMB_BITS, GMP_LIMB_MAX, i, mpn_common_scan(), mpn_zero_p(), and up.
Referenced by output_curve().
mp_bitcnt_t mpz_scan1 | ( | const | mpz_t, |
mp_bitcnt_t | starting_bit | ||
) |
Definition at line 4099 of file mini-gmp.c.
References GMP_ABS, GMP_LIMB_BITS, GMP_LIMB_MAX, i, mpn_common_scan(), mpn_zero_p(), and up.
Referenced by miller_rabin_pocklington(), mpz_probab_prime_p(), and output_curve().
void mpz_set | ( | mpz_t | r, |
const | mpz_t | ||
) |
Definition at line 1504 of file mini-gmp.c.
References GMP_ABS, mpn_copyi(), MPZ_REALLOC, rp, and x.
Referenced by ecc_set(), mpz_abs(), mpz_div_qr(), mpz_init_set(), mpz_ior(), mpz_neg(), mpz_rootrem(), mpz_xor(), output_curve(), and output_point().
void mpz_set_d | ( | mpz_t | r, |
double | x | ||
) |
Definition at line 1689 of file mini-gmp.c.
References B, GMP_LIMB_HIGHBIT, i, MPZ_REALLOC, rp, and x.
Referenced by mpz_init_set_d().
void mpz_set_si | ( | mpz_t | r, |
signed long int | x | ||
) |
Definition at line 1465 of file mini-gmp.c.
References GMP_LIMB_BITS, GMP_NEG_CAST, GMP_ULONG_BITS, mpz_neg(), MPZ_REALLOC, mpz_set_ui(), and x.
Referenced by gmp_lucas_mod(), mpz_div_qr(), mpz_gcdext(), and mpz_init_set_si().
int mpz_set_str | ( | mpz_t | r, |
const char * | sp, | ||
int | base | ||
) |
Definition at line 4288 of file mini-gmp.c.
References mpn_base_info::exp, gmp_free, GMP_LIMB_BITS, gmp_xalloc, mpn_base_power_of_two_p(), mpn_get_base_info(), mpn_set_str_bits(), mpn_set_str_other(), MPZ_REALLOC, rp, and sp.
Referenced by ecc_set_str(), and mpz_init_set_str().
void mpz_set_ui | ( | mpz_t | r, |
unsigned long int | x | ||
) |
Definition at line 1483 of file mini-gmp.c.
References GMP_LIMB_BITS, GMP_ULONG_BITS, MPZ_REALLOC, and x.
Referenced by _nettle_generate_pocklington_prime(), ecc_add(), ecc_set_zero(), gmp_lucas_mod(), mpz_bin_uiui(), mpz_div_qr(), mpz_gcd(), mpz_init_set_ui(), mpz_mfac_uiui(), mpz_powm(), mpz_probab_prime_p(), mpz_set_si(), nettle_dsa_generate_params(), nettle_ecc_point_set(), nettle_mpz_set_str_256_s(), nettle_random_prime(), nettle_rsa_md5_sign(), nettle_rsa_md5_sign_digest(), nettle_rsa_pkcs1_sign(), nettle_rsa_sha1_sign(), nettle_rsa_sha1_sign_digest(), nettle_rsa_sha256_sign(), nettle_rsa_sha256_sign_digest(), nettle_rsa_sha512_sign(), nettle_rsa_sha512_sign_digest(), and output_curve().
void mpz_setbit | ( | mpz_t | d, |
mp_bitcnt_t | bit_index | ||
) |
Definition at line 3747 of file mini-gmp.c.
References mpz_abs_add_bit(), mpz_abs_sub_bit(), and mpz_tstbit().
Referenced by mpz_gcdext(), mpz_rootrem(), nettle_rsa_generate_keypair(), output_curve(), output_digits(), and output_modulo().
int mpz_sgn | ( | const | mpz_t | ) |
Definition at line 1847 of file mini-gmp.c.
References GMP_CMP.
Referenced by _nettle_mpz_limbs_cmp(), _nettle_rsa_verify(), _nettle_rsa_verify_recover(), ecc_mul_binary(), mpz_congruent_p(), mpz_gcdext(), nettle_dsa_params_from_der_iterator(), nettle_dsa_public_key_from_der_iterator(), nettle_dsa_verify(), nettle_ecc_point_set(), nettle_ecc_scalar_set(), nettle_ecdsa_sign(), nettle_ecdsa_verify(), nettle_gostdsa_sign(), nettle_gostdsa_verify(), nettle_mpz_get_str_256(), nettle_mpz_sizeinbase_256_s(), nettle_rsa_decrypt(), nettle_rsa_decrypt_tr(), nettle_rsa_public_key_from_der_iterator(), and nettle_rsa_sec_decrypt().
size_t mpz_size | ( | const | mpz_t | ) |
Definition at line 1622 of file mini-gmp.c.
References GMP_ABS.
Referenced by _nettle_mpz_limbs_cmp(), _nettle_mpz_limbs_copy(), _nettle_mpz_limbs_read_n(), _nettle_rsa_sec_compute_root(), _nettle_rsa_sec_compute_root_itch(), _nettle_rsa_sec_compute_root_tr(), nettle_ecdsa_verify(), nettle_gostdsa_verify(), nettle_mpz_to_octets(), nettle_rsa_compute_root(), nettle_rsa_compute_root_tr(), nettle_rsa_decrypt_tr(), nettle_rsa_private_key_prepare(), nettle_rsa_sec_decrypt(), rsa_sec_blind(), rsa_sec_check_root(), and rsa_sec_unblind().
size_t mpz_sizeinbase | ( | const | mpz_t, |
int | base | ||
) |
Definition at line 4167 of file mini-gmp.c.
References GMP_ABS, gmp_free, GMP_LIMB_BITS, gmp_xalloc_limbs(), mpn_copyi(), mpn_div_qr_1_invert(), mpn_div_qr_1_preinv(), mpn_limb_size_in_base_2(), tp, and up.
Referenced by _nettle_generate_pocklington_prime(), _nettle_rsa_check_size(), ecc_curve_init(), ecc_mul_binary(), gmp_lucas_mod(), mpz_get_str(), mpz_rootrem(), nettle_asn1_der_get_bignum(), nettle_dsa_keypair_from_sexp_alist(), nettle_dsa_openssl_private_key_from_der_iterator(), nettle_dsa_params_from_der_iterator(), nettle_dsa_public_key_from_der_iterator(), nettle_dsa_sign(), nettle_dsa_verify(), nettle_mpz_random(), nettle_mpz_set_sexp(), nettle_mpz_sizeinbase_256_s(), nettle_mpz_sizeinbase_256_u(), nettle_pgp_put_mpi(), nettle_pss_verify_mgf1(), nettle_rsa_generate_keypair(), nettle_rsa_pss_sha256_sign_digest_tr(), nettle_rsa_pss_sha256_verify_digest(), nettle_rsa_pss_sha384_sign_digest_tr(), nettle_rsa_pss_sha384_verify_digest(), nettle_rsa_pss_sha512_sign_digest_tr(), nettle_rsa_pss_sha512_verify_digest(), output_curve(), output_modulo(), rsa_sec_blind(), and rsa_sec_check_root().
void mpz_sqrt | ( | mpz_t | s, |
const | mpz_t | ||
) |
Definition at line 3265 of file mini-gmp.c.
References mpz_rootrem(), and NULL.
Definition at line 3259 of file mini-gmp.c.
References mpz_rootrem().
void mpz_sub | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2021 of file mini-gmp.c.
References mpz_abs_add(), and mpz_abs_sub().
Referenced by ecc_add(), ecc_dup(), mpz_congruent_p(), mpz_div_qr(), mpz_gcd(), mpz_gcdext(), mpz_invert(), mpz_rootrem(), mpz_submul(), mpz_submul_ui(), nettle_ecc_point_set(), nettle_mpz_set_str_256_s(), and output_curve().
void mpz_sub_ui | ( | mpz_t | r, |
const | mpz_t, | ||
unsigned long | b | ||
) |
Definition at line 1947 of file mini-gmp.c.
References mpz_neg(), and mpz_ui_sub().
Referenced by _nettle_generate_pocklington_prime(), ecc_dup(), miller_rabin_pocklington(), mpz_div_qr(), nettle_dsa_generate_keypair(), nettle_dsa_sign(), nettle_ecc_point_set(), nettle_rsa_generate_keypair(), output_curve(), and output_digits().
void mpz_submul | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2160 of file mini-gmp.c.
References mpz_clear(), mpz_init(), mpz_mul(), mpz_sub(), and v.
Referenced by ecc_add(), and nettle_ecc_point_set().
void mpz_submul_ui | ( | mpz_t | r, |
const | mpz_t, | ||
unsigned long int | v | ||
) |
Definition at line 2140 of file mini-gmp.c.
References mpz_clear(), mpz_init_set_ui(), mpz_mul(), mpz_sub(), and v.
Referenced by _nettle_generate_pocklington_prime(), ecc_dup(), and gmp_lucas_step_k_2k().
Definition at line 1926 of file mini-gmp.c.
References MP_PTR_SWAP, MP_SIZE_T_SWAP, and v.
Referenced by ecc_add(), ecc_dup(), gmp_lucas_mod(), mpz_div_qr(), mpz_div_qr_ui(), mpz_gcd(), mpz_gcd_ui(), mpz_gcdext(), mpz_invert(), mpz_mul(), mpz_pow_ui(), mpz_powm(), and mpz_rootrem().
void mpz_tdiv_q | ( | mpz_t | q, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2317 of file mini-gmp.c.
References GMP_DIV_TRUNC, mpz_div_qr(), and NULL.
Referenced by mpz_rootrem().
void mpz_tdiv_q_2exp | ( | mpz_t | r, |
const | mpz_t, | ||
mp_bitcnt_t | cnt | ||
) |
Definition at line 2483 of file mini-gmp.c.
References GMP_DIV_TRUNC, and mpz_div_q_2exp().
Referenced by _nettle_dsa_hash(), gmp_lucas_mod(), mpz_gcdext(), mpz_make_odd(), mpz_probab_prime_p(), mpz_rootrem(), and output_digits().
unsigned long mpz_tdiv_q_ui | ( | mpz_t | q, |
const | mpz_t, | ||
unsigned long | d | ||
) |
Definition at line 2587 of file mini-gmp.c.
References GMP_DIV_TRUNC, mpz_div_qr_ui(), and NULL.
Referenced by mpz_rootrem().
Definition at line 2299 of file mini-gmp.c.
References GMP_DIV_TRUNC, and mpz_div_qr().
Referenced by _nettle_generate_pocklington_prime(), and mpz_gcdext().
Definition at line 2569 of file mini-gmp.c.
References GMP_DIV_TRUNC, and mpz_div_qr_ui().
void mpz_tdiv_r | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 2335 of file mini-gmp.c.
References GMP_DIV_TRUNC, mpz_div_qr(), and NULL.
Referenced by gmp_lucas_mod(), gmp_lucas_step_k_2k(), and mpz_gcd().
void mpz_tdiv_r_2exp | ( | mpz_t | r, |
const | mpz_t, | ||
mp_bitcnt_t | cnt | ||
) |
Definition at line 2501 of file mini-gmp.c.
References GMP_DIV_TRUNC, and mpz_div_r_2exp().
unsigned long mpz_tdiv_r_ui | ( | mpz_t | r, |
const | mpz_t, | ||
unsigned long | d | ||
) |
Definition at line 2603 of file mini-gmp.c.
References GMP_DIV_TRUNC, mpz_div_qr_ui(), and NULL.
unsigned long mpz_tdiv_ui | ( | const | mpz_t, |
unsigned long | d | ||
) |
Definition at line 2621 of file mini-gmp.c.
References GMP_DIV_TRUNC, mpz_div_qr_ui(), and NULL.
Referenced by gmp_stronglucas(), and mpz_gcd().
int mpz_tstbit | ( | const | mpz_t, |
mp_bitcnt_t | bit_index | ||
) |
Definition at line 3652 of file mini-gmp.c.
References GMP_ABS, GMP_LIMB_BITS, gmp_div_inverse::shift, and w.
Referenced by ecc_mul_binary(), ecc_mul_pippenger(), gmp_lucas_mod(), mpz_clrbit(), mpz_combit(), mpz_setbit(), and nettle_rsa_generate_keypair().
void mpz_ui_pow_ui | ( | mpz_t | r, |
unsigned long | blimb, | ||
unsigned long | e | ||
) |
Definition at line 3058 of file mini-gmp.c.
References mpz_clear(), mpz_init_set_ui(), and mpz_pow_ui().
void mpz_ui_sub | ( | mpz_t | r, |
unsigned long | a, | ||
const | mpz_t | ||
) |
Definition at line 1954 of file mini-gmp.c.
References mpz_add_ui(), and mpz_neg().
Referenced by ecc_add(), and mpz_sub_ui().
void mpz_xor | ( | mpz_t | r, |
const | mpz_t, | ||
const | mpz_t | ||
) |
Definition at line 3932 of file mini-gmp.c.
References GMP_ABS, i, MP_SIZE_T_SWAP, mpn_normalized_size(), MPZ_REALLOC, mpz_set(), MPZ_SRCPTR_SWAP, rp, up, v, and vp.
|
extern |
Definition at line 274 of file mini-gmp.c.