Home | History | Annotate | Download | only in openssh

Lines Matching refs:bn_ctx

199 	BN_CTX *bn_ctx;
201 if ((bn_ctx = BN_CTX_new()) == 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)
241 BN_CTX_free(bn_ctx);
255 BN_CTX *bn_ctx;
275 if ((bn_ctx = BN_CTX_new()) == NULL)
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)
320 BN_CTX_free(bn_ctx);
359 BN_CTX *bn_ctx;
362 if ((bn_ctx = BN_CTX_new()) == NULL)
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)
400 if (BN_mul(tmp, mypriv2, s, bn_ctx) != 1)
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)
411 BN_CTX_free(bn_ctx);