Lines Matching full:scalars
129 fprintf(stdout, "%d-bit scalars ", (int)BN_num_bits(s));
195 /* test multiplication with group order, long and negative scalars */
633 const BIGNUM *scalars[4];
646 scalars[0] = y; /* (group order + 1)/2, so y*Q + y*Q = Q */
647 scalars[1] = y;
653 if (!EC_POINTs_mul(group, P, NULL, 2, points, scalars, ctx)) ABORT;
654 if (!EC_POINTs_mul(group, R, z, 2, points, scalars, ctx)) ABORT;
664 scalars[0] = y;
665 scalars[1] = z; /* z = -(order + y) */
667 if (!EC_POINTs_mul(group, P, NULL, 2, points, scalars, ctx)) ABORT;
676 scalars[0] = x;
677 scalars[1] = y;
678 scalars[2] = z; /* z = -(x+y) */
682 scalars[3] = &scalar3;
684 if (!EC_POINTs_mul(group, P, NULL, 4, points, scalars, ctx)) ABORT;
1109 const BIGNUM *scalars[3];
1119 scalars[0] = y; /* (group order + 1)/2, so y*Q + y*Q = Q */
1120 scalars[1] = y;
1126 if (!EC_POINTs_mul(group, P, NULL, 2, points, scalars, ctx)) ABORT;
1127 if (!EC_POINTs_mul(group, R, z, 2, points, scalars, ctx)) ABORT;
1137 scalars[0] = y;
1138 scalars[1] = z; /* z = -(order + y) */
1140 if (!EC_POINTs_mul(group, P, NULL, 2, points, scalars, ctx)) ABORT;
1149 scalars[0] = x;
1150 scalars[1] = y;
1151 scalars[2] = z; /* z = -(x+y) */
1153 if (!EC_POINTs_mul(group, P, NULL, 3, points, scalars, ctx)) ABORT;