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);
40 * Copy the internal BIGNUM words into out which holds size elements (and size
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);
54 * Copy words into the BIGNUM |a|, reallocating space as necessary.
62 int bn_set_words(BIGNUM *a, const BN_ULONG *words, int num_words);
65 * Some BIGNUM functions assume most significant limb to be non-zero, which
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);
96 int ossl_bn_miller_rabin_is_prime(const BIGNUM *w, int iterations, BN_CTX *ctx,
99 const BIGNUM *ossl_bn_get0_small_factors(void);
101 int ossl_bn_rsa_fips186_4_gen_prob_primes(BIGNUM *p, BIGNUM *Xpout,
102 BIGNUM *p1, BIGNUM *p2,
103 const BIGNUM *Xp, const BIGNUM *Xp1,
104 const BIGNUM *Xp2, int nlen,
105 const BIGNUM *e, BN_CTX *ctx,
108 int ossl_bn_rsa_fips186_4_derive_prime(BIGNUM *Y, BIGNUM *X, const BIGNUM *Xin,
109 const BIGNUM *r1, const BIGNUM *r2,
110 int nlen, const BIGNUM *e, BN_CTX *ctx,
115 extern const BIGNUM ossl_bn_inv_sqrt_2;