Lines Matching refs:a

34 int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,  in BN_mod_add()  argument
37 if (!BN_add(r, a, b)) in BN_mod_add()
54 int bn_mod_add_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, in bn_mod_add_fixed_top() argument
71 ap = a->d != NULL ? a->d : tp; in bn_mod_add_fixed_top()
75 mask = (BN_ULONG)0 - ((i - a->top) >> (8 * sizeof(i) - 1)); in bn_mod_add_fixed_top()
84 ai += (i - a->dmax) >> (8 * sizeof(i) - 1); in bn_mod_add_fixed_top()
103 int BN_mod_add_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, in BN_mod_add_quick() argument
106 int ret = bn_mod_add_fixed_top(r, a, b, m); in BN_mod_add_quick()
114 int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, in BN_mod_sub() argument
117 if (!BN_sub(r, a, b)) in BN_mod_sub()
136 int bn_mod_sub_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, in bn_mod_sub_fixed_top() argument
147 ap = a->d != NULL ? a->d : rp; in bn_mod_sub_fixed_top()
151 mask = (BN_ULONG)0 - ((i - a->top) >> (8 * sizeof(i) - 1)); in bn_mod_sub_fixed_top()
161 ai += (i - a->dmax) >> (8 * sizeof(i) - 1); in bn_mod_sub_fixed_top()
190 int BN_mod_sub_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, in BN_mod_sub_quick() argument
198 if (!BN_sub(r, a, b)) in BN_mod_sub_quick()
206 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, in BN_mod_mul() argument
212 bn_check_top(a); in BN_mod_mul()
219 if (a == b) { in BN_mod_mul()
220 if (!BN_sqr(t, a, ctx)) in BN_mod_mul()
223 if (!BN_mul(t, a, b, ctx)) in BN_mod_mul()
235 int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx) in BN_mod_sqr() argument
237 if (!BN_sqr(r, a, ctx)) in BN_mod_sqr()
243 int BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx) in BN_mod_lshift1() argument
245 if (!BN_lshift1(r, a)) in BN_mod_lshift1()
255 int BN_mod_lshift1_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *m) in BN_mod_lshift1_quick() argument
257 if (!BN_lshift1(r, a)) in BN_mod_lshift1_quick()
265 int BN_mod_lshift(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m, in BN_mod_lshift() argument
271 if (!BN_nnmod(r, a, m, ctx)) in BN_mod_lshift()
292 int BN_mod_lshift_quick(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m) in BN_mod_lshift_quick() argument
294 if (r != a) { in BN_mod_lshift_quick()
295 if (BN_copy(r, a) == NULL) in BN_mod_lshift_quick()