Lines Matching refs:BIGNUM
17 BIGNUM *bn_wexpand(BIGNUM *a, int words);
18 BIGNUM *bn_expand2(BIGNUM *a, int words);
20 void bn_correct_top(BIGNUM *a);
30 signed char *bn_compute_wNAF(const BIGNUM *scalar, int w, size_t *ret_len);
32 int bn_get_top(const BIGNUM *a);
34 int bn_get_dmax(const BIGNUM *a);
37 void bn_set_all_zero(BIGNUM *a);
43 int bn_copy_words(BN_ULONG *out, const BIGNUM *in, int size);
45 BN_ULONG *bn_get_words(const BIGNUM *a);
51 void bn_set_static_words(BIGNUM *a, const BN_ULONG *words, int size);
62 int bn_set_words(BIGNUM *a, const BN_ULONG *words, int num_words);
74 int bn_mul_mont_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
76 int bn_to_mont_fixed_top(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
78 int bn_from_mont_fixed_top(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
80 int bn_mod_add_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
81 const BIGNUM *m);
82 int bn_mod_sub_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
83 const BIGNUM *m);
84 int bn_mul_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
85 int bn_sqr_fixed_top(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);
86 int bn_lshift_fixed_top(BIGNUM *r, const BIGNUM *a, int n);
87 int bn_rshift_fixed_top(BIGNUM *r, const BIGNUM *a, int n);
88 int bn_div_fixed_top(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
89 const BIGNUM *d, BN_CTX *ctx);
90 int ossl_bn_mask_bits_fixed_top(BIGNUM *a, int n);
91 int ossl_bn_is_word_fixed_top(const BIGNUM *a, const BN_ULONG w);
92 int ossl_bn_priv_rand_range_fixed_top(BIGNUM *r, const BIGNUM *range,
94 int ossl_bn_gen_dsa_nonce_fixed_top(BIGNUM *out, const BIGNUM *range,
95 const BIGNUM *priv,
104 int ossl_bn_miller_rabin_is_prime(const BIGNUM *w, int iterations, BN_CTX *ctx,
106 int ossl_bn_check_generated_prime(const BIGNUM *w, int checks, BN_CTX *ctx,
109 const BIGNUM *ossl_bn_get0_small_factors(void);
111 int ossl_bn_rsa_fips186_4_gen_prob_primes(BIGNUM *p, BIGNUM *Xpout,
112 BIGNUM *p1, BIGNUM *p2,
113 const BIGNUM *Xp, const BIGNUM *Xp1,
114 const BIGNUM *Xp2, int nlen,
115 const BIGNUM *e, BN_CTX *ctx,
118 int ossl_bn_rsa_fips186_4_derive_prime(BIGNUM *Y, BIGNUM *X, const BIGNUM *Xin,
119 const BIGNUM *r1, const BIGNUM *r2,
120 int nlen, const BIGNUM *e, BN_CTX *ctx,
125 extern const BIGNUM ossl_bn_inv_sqrt_2;
132 int s390x_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
133 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
134 int s390x_crt(BIGNUM *r, const BIGNUM *i, const BIGNUM *p, const BIGNUM *q,
135 const BIGNUM *dmp, const BIGNUM *dmq, const BIGNUM *iqmp);
139 int ossl_bn_mont_ctx_set(BN_MONT_CTX *ctx, const BIGNUM *modulus, int ri,