Lines Matching defs:u1
337 BIGNUM *u1, *u2, *t1;
360 u1 = BN_new();
364 if (u1 == NULL || u2 == NULL || t1 == NULL || ctx == NULL)
386 /* save M in u1 */
394 if (BN_bin2bn(dgst, dgst_len, u1) == NULL)
397 /* u1 = M * w mod q */
398 if (!BN_mod_mul(u1, u1, u2, dsa->params.q, ctx))
413 if (!dsa->meth->dsa_mod_exp(dsa, t1, dsa->params.g, u1, dsa->pub_key, u2,
417 if (!BN_mod_exp2_mont(t1, dsa->params.g, u1, dsa->pub_key, u2,
422 /* let u1 = u1 mod q */
423 if (!BN_mod(u1, t1, dsa->params.q, ctx))
427 * V is now in u1. If the signature is correct, it will be equal to R.
429 ret = (BN_ucmp(u1, r) == 0);
435 BN_free(u1);