Lines Matching refs:r
14 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) in BN_add() argument
23 ret = BN_uadd(r, a, b); in BN_add()
28 ret = BN_usub(r, a, b); in BN_add()
31 ret = BN_usub(r, b, a); in BN_add()
34 BN_zero(r); in BN_add()
39 r->neg = r_neg; in BN_add()
40 bn_check_top(r); in BN_add()
45 int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) in BN_sub() argument
54 ret = BN_uadd(r, a, b); in BN_sub()
59 ret = BN_usub(r, a, b); in BN_sub()
62 ret = BN_usub(r, b, a); in BN_sub()
65 BN_zero(r); in BN_sub()
70 r->neg = r_neg; in BN_sub()
71 bn_check_top(r); in BN_sub()
76 int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) in BN_uadd() argument
96 if (bn_wexpand(r, max + 1) == NULL) in BN_uadd()
99 r->top = max; in BN_uadd()
103 rp = r->d; in BN_uadd()
117 r->top += carry; in BN_uadd()
119 r->neg = 0; in BN_uadd()
120 bn_check_top(r); in BN_uadd()
125 int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) in BN_usub() argument
143 if (bn_wexpand(r, max) == NULL) in BN_usub()
148 rp = r->d; in BN_usub()
165 r->top = max; in BN_usub()
166 r->neg = 0; in BN_usub()
167 bn_pollute(r); in BN_usub()