• Home
  • Raw
  • Download

Lines Matching refs:pctx

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