Home | History | Annotate | Download | only in openssh

Lines Matching defs:pctx

2118 	struct jpake_ctx *pctx;
2128 authctxt->jpake_ctx = pctx = jpake_new();
2130 jpake_step1(pctx->grp,
2131 &pctx->server_id, &pctx->server_id_len,
2132 &pctx->x3, &pctx->x4, &pctx->g_x3, &pctx->g_x4,
2136 JPAKE_DEBUG_CTX((pctx, "step1 done in %s", __func__));
2140 buffer_put_string(m, pctx->server_id, pctx->server_id_len);
2141 buffer_put_bignum2(m, pctx->g_x3);
2142 buffer_put_bignum2(m, pctx->g_x4);
2163 struct jpake_ctx *pctx = authctxt->jpake_ctx;
2166 if (pctx == NULL)
2167 fatal("%s: pctx == NULL", __func__);
2169 auth2_jpake_get_pwdata(authctxt, &pctx->s, &hash_scheme, &salt);
2172 /* pctx->s is sensitive, not returned to slave */
2192 struct jpake_ctx *pctx = authctxt->jpake_ctx;
2196 if (pctx == NULL)
2197 fatal("%s: pctx == NULL", __func__);
2199 if ((pctx->g_x1 = BN_new()) == NULL ||
2200 (pctx->g_x2 = BN_new()) == NULL)
2202 buffer_get_bignum2(m, pctx->g_x1);
2203 buffer_get_bignum2(m, pctx->g_x2);
2204 pctx->client_id = buffer_get_string(m, &pctx->client_id_len);
2208 jpake_step2(pctx->grp, pctx->s, pctx->g_x3,
2209 pctx->g_x1, pctx->g_x2, pctx->x4,
2210 pctx->client_id, pctx->client_id_len,
2211 pctx->server_id, pctx->server_id_len,
2214 &pctx->b,
2217 JPAKE_DEBUG_CTX((pctx, "step2 done in %s", __func__));
2226 buffer_put_bignum2(m, pctx->b);
2243 struct jpake_ctx *pctx = authctxt->jpake_ctx;
2247 if (pctx == NULL)
2248 fatal("%s: pctx == NULL", __func__);
2250 if ((pctx->a = BN_new()) == NULL)
2252 buffer_get_bignum2(m, pctx->a);
2255 jpake_key_confirm(pctx->grp, pctx->s, pctx->a,
2256 pctx->x4, pctx->g_x3, pctx->g_x4, pctx->g_x1, pctx->g_x2,
2257 pctx->server_id, pctx->server_id_len,
2258 pctx->client_id, pctx->client_id_len,
2261 &pctx->k,
2262 &pctx->h_k_sid_sessid, &pctx->h_k_sid_sessid_len);
2264 JPAKE_DEBUG_CTX((pctx, "key_confirm done in %s", __func__));
2269 /* pctx->k is sensitive, not sent */
2270 buffer_put_string(m, pctx->h_k_sid_sessid, pctx->h_k_sid_sessid_len);
2286 struct jpake_ctx *pctx = authctxt->jpake_ctx;
2288 if (pctx == NULL)
2289 fatal("%s: pctx == NULL", __func__);
2293 authenticated = jpake_check_confirm(pctx->k,
2294 pctx->client_id, pctx->client_id_len,
2298 JPAKE_DEBUG_CTX((pctx, "check_confirm done in %s", __func__));