Home | History | Annotate | Download | only in openssh

Lines Matching defs:pctx

1031 	struct jpake_ctx *pctx = authctxt->methoddata;
1039 if ((pctx->g_x3 = BN_new()) == NULL ||
1040 (pctx->g_x4 = BN_new()) == NULL)
1046 pctx->server_id = packet_get_string(&pctx->server_id_len);
1047 packet_get_bignum2(pctx->g_x3);
1048 packet_get_bignum2(pctx->g_x4);
1053 JPAKE_DEBUG_CTX((pctx, "step 1 received in %s", __func__));
1056 pctx->s = jpake_password_to_secret(authctxt, crypt_scheme, salt);
1061 JPAKE_DEBUG_BN((pctx->s, "%s: s = ", __func__));
1064 jpake_step2(pctx->grp, pctx->s, pctx->g_x1,
1065 pctx->g_x3, pctx->g_x4, pctx->x2,
1066 pctx->server_id, pctx->server_id_len,
1067 pctx->client_id, pctx->client_id_len,
1070 &pctx->a,
1078 JPAKE_DEBUG_CTX((pctx, "step 2 sending in %s", __func__));
1082 packet_put_bignum2(pctx->a);
1099 struct jpake_ctx *pctx = authctxt->methoddata;
1106 if ((pctx->b = BN_new()) == NULL)
1110 packet_get_bignum2(pctx->b);
1114 JPAKE_DEBUG_CTX((pctx, "step 2 received in %s", __func__));
1117 jpake_key_confirm(pctx->grp, pctx->s, pctx->b,
1118 pctx->x2, pctx->g_x1, pctx->g_x2, pctx->g_x3, pctx->g_x4,
1119 pctx->client_id, pctx->client_id_len,
1120 pctx->server_id, pctx->server_id_len,
1123 &pctx->k,
1124 &pctx->h_k_cid_sessid, &pctx->h_k_cid_sessid_len);
1129 JPAKE_DEBUG_CTX((pctx, "confirm sending in %s", __func__));
1133 packet_put_string(pctx->h_k_cid_sessid, pctx->h_k_cid_sessid_len);
1146 struct jpake_ctx *pctx = authctxt->methoddata;
1151 pctx->h_k_sid_sessid = packet_get_string(&pctx->h_k_sid_sessid_len);
1154 JPAKE_DEBUG_CTX((pctx, "confirm received in %s", __func__));
1157 if (jpake_check_confirm(pctx->k,
1158 pctx->server_id, pctx->server_id_len,
1160 pctx->h_k_sid_sessid, pctx->h_k_sid_sessid_len) == 1)
1747 struct jpake_ctx *pctx;
1761 authctxt->methoddata = pctx = jpake_new();
1774 jpake_step1(pctx->grp,
1775 &pctx->client_id, &pctx->client_id_len,
1776 &pctx->x1, &pctx->x2, &pctx->g_x1, &pctx->g_x2,
1780 JPAKE_DEBUG_CTX((pctx, "step 1 sending in %s", __func__));
1783 packet_put_string(pctx->client_id, pctx->client_id_len);
1784 packet_put_bignum2(pctx->g_x1);
1785 packet_put_bignum2(pctx->g_x2);