Lines Matching full:exponent
256 BIGNUM *tmp, *exponent;
280 (exponent = BN_new()) == NULL)
284 * client: exponent = x2 * s mod p
285 * server: exponent = x4 * s mod p
287 if (BN_mod_mul(exponent, mypriv2, s, grp->q, bn_ctx) != 1)
288 fatal("%s: BN_mod_mul (exponent = mypriv2 * s mod p)",
302 * client: a = tmp^exponent = g^((x1+x3+x4) * x2 * s) mod p
303 * server: b = tmp^exponent = g^((x1+x2+x3) * x4 * s) mod p
305 if (BN_mod_exp(*newpub, tmp, exponent, grp->p, bn_ctx) != 1)
306 fatal("%s: BN_mod_mul (newpub = tmp^exponent mod p)", __func__);
309 JPAKE_DEBUG_BN((exponent, "%s: exponent = ", __func__));
312 if (schnorr_sign_buf(grp->p, grp->q, tmp, exponent, *newpub,
318 BN_clear_free(exponent); /* XXX stash for later use? (yes, in conf) */