Lines Matching refs:tp

855     BN_ULONG c0, c1, ml, *tp, n0;  in bn_mul_mont()  local
867 vp = tp = alloca((num + 2) * sizeof(BN_ULONG)); in bn_mul_mont()
877 mul(tp[j], ap[j], ml, mh, c0); in bn_mul_mont()
880 mul(tp[j], ap[j], ml, c0); in bn_mul_mont()
883 tp[num] = c0; in bn_mul_mont()
884 tp[num + 1] = 0; in bn_mul_mont()
894 mul_add(tp[j], ap[j], ml, mh, c0); in bn_mul_mont()
897 mul_add(tp[j], ap[j], ml, c0); in bn_mul_mont()
899 c1 = (tp[num] + c0) & BN_MASK2; in bn_mul_mont()
900 tp[num] = c1; in bn_mul_mont()
901 tp[num + 1] = (c1 < c0 ? 1 : 0); in bn_mul_mont()
903 c1 = tp[0]; in bn_mul_mont()
914 c1 = tp[j]; in bn_mul_mont()
920 tp[j - 1] = c1 & BN_MASK2; in bn_mul_mont()
922 c1 = (tp[num] + c0) & BN_MASK2; in bn_mul_mont()
923 tp[num - 1] = c1; in bn_mul_mont()
924 tp[num] = tp[num + 1] + (c1 < c0 ? 1 : 0); in bn_mul_mont()
927 if (tp[num] != 0 || tp[num - 1] >= np[num - 1]) { in bn_mul_mont()
928 c0 = bn_sub_words(rp, tp, np, num); in bn_mul_mont()
929 if (tp[num] != 0 || c0 == 0) { in bn_mul_mont()
936 rp[i] = tp[i], vp[i] = 0; in bn_mul_mont()
996 BN_ULONG c0, c1, *tp, n0 = *n0p; in bn_mul_mont() local
1000 vp = tp = alloca((num + 2) * sizeof(BN_ULONG)); in bn_mul_mont()
1003 tp[i] = 0; in bn_mul_mont()
1006 c0 = bn_mul_add_words(tp, ap, num, bp[i]); in bn_mul_mont()
1007 c1 = (tp[num] + c0) & BN_MASK2; in bn_mul_mont()
1008 tp[num] = c1; in bn_mul_mont()
1009 tp[num + 1] = (c1 < c0 ? 1 : 0); in bn_mul_mont()
1011 c0 = bn_mul_add_words(tp, np, num, tp[0] * n0); in bn_mul_mont()
1012 c1 = (tp[num] + c0) & BN_MASK2; in bn_mul_mont()
1013 tp[num] = c1; in bn_mul_mont()
1014 tp[num + 1] += (c1 < c0 ? 1 : 0); in bn_mul_mont()
1016 tp[j] = tp[j + 1]; in bn_mul_mont()
1019 if (tp[num] != 0 || tp[num - 1] >= np[num - 1]) { in bn_mul_mont()
1020 c0 = bn_sub_words(rp, tp, np, num); in bn_mul_mont()
1021 if (tp[num] != 0 || c0 == 0) { in bn_mul_mont()
1028 rp[i] = tp[i], vp[i] = 0; in bn_mul_mont()