Lines Matching refs:rp
91 BN_ULONG *ap, *np, *rp, n0, v, carry; in bn_from_montgomery_word() local
108 rp = r->d; in bn_from_montgomery_word()
113 rp[i] &= v; in bn_from_montgomery_word()
125 for (carry = 0, i = 0; i < nl; i++, rp++) { in bn_from_montgomery_word()
126 v = bn_mul_add_words(rp, np, nl, (rp[0] * n0) & BN_MASK2); in bn_from_montgomery_word()
127 v = (v + carry + rp[nl]) & BN_MASK2; in bn_from_montgomery_word()
128 carry |= (v != rp[nl]); in bn_from_montgomery_word()
129 carry &= (v <= rp[nl]); in bn_from_montgomery_word()
130 rp[nl] = v; in bn_from_montgomery_word()
139 rp = ret->d; in bn_from_montgomery_word()
147 carry -= bn_sub_words(rp, ap, np, nl); in bn_from_montgomery_word()
154 rp[i] = (carry & ap[i]) | (~carry & rp[i]); in bn_from_montgomery_word()