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