Lines Matching refs:xa
10 * In the definition, (xa, xb, xc, xd) are Alice's (x1, x2, x3, x4) or
28 BIGNUM *xa; /* Alice's x1 or Bob's x3 */
88 ctx->xa = BN_new();
99 BN_clear_free(ctx->xa);
257 /* Generate each party's random numbers. xa is in [0, q), xb is in [1, q). */
262 /* xa in [0, q) */
263 BN_rand_range(ctx->xa, ctx->p.q);
282 generate_step_part(&send->p1, ctx->xa, ctx->p.g, ctx);
350 * X = g^{(xa + xc + xd) * xb * s}
351 * t1 = g^xa
353 BN_mod_exp(t1, ctx->p.g, ctx->xa, ctx->p.p, ctx->ctx);
354 /* t2 = t1 * g^{xc} = g^{xa} * g^{xc} = g^{xa + xc} */
356 /* t1 = t2 * g^{xd} = g^{xa + xc + xd} */
365 * g' = g^{xa + xc + xd}
368 * X = t1^{t2} = t1^{xb * s} = g^{(xa + xc + xd) * xb * s}
379 /* gx = g^{xc + xa + xb} * xd * s */
388 * = (g^{(xc + xa + xb) * xd * s - xb * xd *s})^{xb}
389 * = (g^{(xa + xc) * xd * s})^{xb}
390 * = g^{(xa + xc) * xb * xd * s}
420 * g' = g^{xc + xa + xb} [from our POV]
421 * t1 = xa + xb
423 BN_mod_add(t1, ctx->xa, ctx->xb, ctx->p.q, ctx->ctx);
424 /* t2 = g^{t1} = g^{xa+xb} */
426 /* t1 = g^{xc} * t2 = g^{xc + xa + xb} */