Home | History | Annotate | Download | only in openssh

Lines Matching refs:grp

78 	ret->grp = jpake_default_group();
193 jpake_step1(struct modp_group *grp,
215 if ((*priv1 = bn_rand_range_gt_one(grp->q)) == NULL ||
216 (*priv2 = bn_rand_range_gt_one(grp->q)) == NULL)
226 if (BN_mod_exp(*g_priv1, grp->g, *priv1, grp->p, bn_ctx) == -1)
228 if (BN_mod_exp(*g_priv2, grp->g, *priv2, grp->p, bn_ctx) == -1)
232 if (schnorr_sign_buf(grp->p, grp->q, grp->g,
236 if (schnorr_sign_buf(grp->p, grp->q, grp->g,
246 jpake_step2(struct modp_group *grp, BIGNUM *s,
261 if (BN_cmp(theirpub1, grp->p) >= 0)
265 if (BN_cmp(theirpub2, grp->p) >= 0)
268 if (schnorr_verify_buf(grp->p, grp->q, grp->g, theirpub1,
271 if (schnorr_verify_buf(grp->p, grp->q, grp->g, theirpub2,
287 if (BN_mod_mul(exponent, mypriv2, s, grp->q, bn_ctx) != 1)
295 if (BN_mod_mul(tmp, mypub1, theirpub1, grp->p, bn_ctx) != 1)
298 if (BN_mod_mul(tmp, tmp, theirpub2, grp->p, bn_ctx) != 1)
305 if (BN_mod_exp(*newpub, tmp, exponent, grp->p, bn_ctx) != 1)
312 if (schnorr_sign_buf(grp->p, grp->q, tmp, exponent, *newpub,
349 jpake_key_confirm(struct modp_group *grp, BIGNUM *s, BIGNUM *step2_val,
371 if (BN_cmp(step2_val, grp->p) >= 0)
379 if (BN_mod_mul(tmp, mypub1, mypub2, grp->p, bn_ctx) != 1)
381 if (BN_mod_mul(tmp, tmp, theirpub1, grp->p, bn_ctx) != 1)
386 if (schnorr_verify_buf(grp->p, grp->q, tmp, step2_val,
402 if (BN_mod_sub(tmp, grp->q, tmp, grp->q, bn_ctx) != 1)
404 if (BN_mod_exp(tmp, theirpub2, tmp, grp->p, bn_ctx) != 1)
406 if (BN_mod_mul(tmp, tmp, step2_val, grp->p, bn_ctx) != 1)
408 if (BN_mod_exp(*k, tmp, mypriv2, grp->p, bn_ctx) != 1)