Lines Matching refs:b

28                            const BN_ULONG *a, const BN_ULONG *b,  in bn_sub_part_words()  argument
34 c = bn_sub_words(r, a, b, cl); in bn_sub_part_words()
41 b += cl; in bn_sub_part_words()
45 t = b[0]; in bn_sub_part_words()
52 t = b[1]; in bn_sub_part_words()
59 t = b[2]; in bn_sub_part_words()
66 t = b[3]; in bn_sub_part_words()
73 b += 4; in bn_sub_part_words()
175 void bn_mul_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n2, in bn_mul_recursive() argument
186 bn_mul_comba4(r, a, b); in bn_mul_recursive()
195 bn_mul_comba8(r, a, b); in bn_mul_recursive()
201 bn_mul_normal(r, a, n2 + dna, b, n2 + dnb); in bn_mul_recursive()
209 c2 = bn_cmp_part_words(&(b[n]), b, tnb, tnb - n); in bn_mul_recursive()
214 bn_sub_part_words(&(t[n]), b, &(b[n]), tnb, n - tnb); /* - */ in bn_mul_recursive()
221 bn_sub_part_words(&(t[n]), &(b[n]), b, tnb, tnb - n); /* + */ in bn_mul_recursive()
231 bn_sub_part_words(&(t[n]), b, &(b[n]), tnb, n - tnb); /* - */ in bn_mul_recursive()
239 bn_sub_part_words(&(t[n]), &(b[n]), b, tnb, tnb - n); in bn_mul_recursive()
251 bn_mul_comba4(r, a, b); in bn_mul_recursive()
252 bn_mul_comba4(&(r[n2]), &(a[n]), &(b[n])); in bn_mul_recursive()
261 bn_mul_comba8(r, a, b); in bn_mul_recursive()
262 bn_mul_comba8(&(r[n2]), &(a[n]), &(b[n])); in bn_mul_recursive()
271 bn_mul_recursive(r, a, b, n, 0, 0, p); in bn_mul_recursive()
272 bn_mul_recursive(&(r[n2]), &(a[n]), &(b[n]), n, dna, dnb, p); in bn_mul_recursive()
322 void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n, in bn_mul_part_recursive() argument
330 bn_mul_normal(r, a, n + tna, b, n + tnb); in bn_mul_part_recursive()
336 c2 = bn_cmp_part_words(&(b[n]), b, tnb, tnb - n); in bn_mul_part_recursive()
341 bn_sub_part_words(&(t[n]), b, &(b[n]), tnb, n - tnb); /* - */ in bn_mul_part_recursive()
346 bn_sub_part_words(&(t[n]), &(b[n]), b, tnb, tnb - n); /* + */ in bn_mul_part_recursive()
354 bn_sub_part_words(&(t[n]), b, &(b[n]), tnb, n - tnb); /* - */ in bn_mul_part_recursive()
360 bn_sub_part_words(&(t[n]), &(b[n]), b, tnb, tnb - n); in bn_mul_part_recursive()
370 bn_mul_comba4(r, a, b); in bn_mul_part_recursive()
371 bn_mul_normal(&(r[n2]), &(a[n]), tn, &(b[n]), tn); in bn_mul_part_recursive()
377 bn_mul_comba8(r, a, b); in bn_mul_part_recursive()
378 bn_mul_normal(&(r[n2]), &(a[n]), tna, &(b[n]), tnb); in bn_mul_part_recursive()
383 bn_mul_recursive(r, a, b, n, 0, 0, p); in bn_mul_part_recursive()
393 bn_mul_recursive(&(r[n2]), &(a[n]), &(b[n]), in bn_mul_part_recursive()
397 bn_mul_part_recursive(&(r[n2]), &(a[n]), &(b[n]), in bn_mul_part_recursive()
406 bn_mul_normal(&(r[n2]), &(a[n]), tna, &(b[n]), tnb); in bn_mul_part_recursive()
416 &(a[n]), &(b[n]), in bn_mul_part_recursive()
421 &(a[n]), &(b[n]), in bn_mul_part_recursive()
477 void bn_mul_low_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n2, in bn_mul_low_recursive() argument
482 bn_mul_recursive(r, a, b, n, 0, 0, &(t[0])); in bn_mul_low_recursive()
484 bn_mul_low_recursive(&(t[0]), &(a[0]), &(b[n]), n, &(t[n2])); in bn_mul_low_recursive()
486 bn_mul_low_recursive(&(t[0]), &(a[n]), &(b[0]), n, &(t[n2])); in bn_mul_low_recursive()
489 bn_mul_low_normal(&(t[0]), &(a[0]), &(b[n]), n); in bn_mul_low_recursive()
490 bn_mul_low_normal(&(t[n]), &(a[n]), &(b[0]), n); in bn_mul_low_recursive()
497 int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) in BN_mul() argument
499 int ret = bn_mul_fixed_top(r, a, b, ctx); in BN_mul()
507 int bn_mul_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) in bn_mul_fixed_top() argument
521 bn_check_top(b); in bn_mul_fixed_top()
525 bl = b->top; in bn_mul_fixed_top()
534 if ((r == a) || (r == b)) { in bn_mul_fixed_top()
550 bn_mul_comba4(rr->d, a->d, b->d); in bn_mul_fixed_top()
558 bn_mul_comba8(rr->d, a->d, b->d); in bn_mul_fixed_top()
587 bn_mul_part_recursive(rr->d, a->d, b->d, in bn_mul_fixed_top()
595 bn_mul_recursive(rr->d, a->d, b->d, j, al - j, bl - j, t->d); in bn_mul_fixed_top()
605 bn_mul_normal(rr->d, a->d, al, b->d, bl); in bn_mul_fixed_top()
610 rr->neg = a->neg ^ b->neg; in bn_mul_fixed_top()
622 void bn_mul_normal(BN_ULONG *r, BN_ULONG *a, int na, BN_ULONG *b, int nb) in bn_mul_normal() argument
634 a = b; in bn_mul_normal()
635 b = ltmp; in bn_mul_normal()
643 rr[0] = bn_mul_words(r, a, na, b[0]); in bn_mul_normal()
648 rr[1] = bn_mul_add_words(&(r[1]), a, na, b[1]); in bn_mul_normal()
651 rr[2] = bn_mul_add_words(&(r[2]), a, na, b[2]); in bn_mul_normal()
654 rr[3] = bn_mul_add_words(&(r[3]), a, na, b[3]); in bn_mul_normal()
657 rr[4] = bn_mul_add_words(&(r[4]), a, na, b[4]); in bn_mul_normal()
660 b += 4; in bn_mul_normal()
664 void bn_mul_low_normal(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n) in bn_mul_low_normal() argument
666 bn_mul_words(r, a, n, b[0]); in bn_mul_low_normal()
671 bn_mul_add_words(&(r[1]), a, n, b[1]); in bn_mul_low_normal()
674 bn_mul_add_words(&(r[2]), a, n, b[2]); in bn_mul_low_normal()
677 bn_mul_add_words(&(r[3]), a, n, b[3]); in bn_mul_low_normal()
680 bn_mul_add_words(&(r[4]), a, n, b[4]); in bn_mul_low_normal()
682 b += 4; in bn_mul_low_normal()