Lines Matching refs:pctx
94 jpake_free(struct jpake_ctx *pctx) in jpake_free() argument
96 debug3("%s: free %p", __func__, pctx); in jpake_free()
115 JPAKE_BN_CLEAR_FREE(pctx->s); in jpake_free()
116 JPAKE_BN_CLEAR_FREE(pctx->k); in jpake_free()
117 JPAKE_BN_CLEAR_FREE(pctx->x1); in jpake_free()
118 JPAKE_BN_CLEAR_FREE(pctx->x2); in jpake_free()
119 JPAKE_BN_CLEAR_FREE(pctx->x3); in jpake_free()
120 JPAKE_BN_CLEAR_FREE(pctx->x4); in jpake_free()
121 JPAKE_BN_CLEAR_FREE(pctx->g_x1); in jpake_free()
122 JPAKE_BN_CLEAR_FREE(pctx->g_x2); in jpake_free()
123 JPAKE_BN_CLEAR_FREE(pctx->g_x3); in jpake_free()
124 JPAKE_BN_CLEAR_FREE(pctx->g_x4); in jpake_free()
125 JPAKE_BN_CLEAR_FREE(pctx->a); in jpake_free()
126 JPAKE_BN_CLEAR_FREE(pctx->b); in jpake_free()
128 JPAKE_BUF_CLEAR_FREE(pctx->client_id, pctx->client_id_len); in jpake_free()
129 JPAKE_BUF_CLEAR_FREE(pctx->server_id, pctx->server_id_len); in jpake_free()
130 JPAKE_BUF_CLEAR_FREE(pctx->h_k_cid_sessid, pctx->h_k_cid_sessid_len); in jpake_free()
131 JPAKE_BUF_CLEAR_FREE(pctx->h_k_sid_sessid, pctx->h_k_sid_sessid_len); in jpake_free()
136 bzero(pctx, sizeof(pctx)); in jpake_free()
137 xfree(pctx); in jpake_free()
142 jpake_dump(struct jpake_ctx *pctx, const char *fmt, ...) in jpake_dump() argument
154 debug3("%s: %s (ctx at %p)", __func__, out, pctx); in jpake_dump()
155 if (pctx == NULL) { in jpake_dump()
169 JPAKE_DUMP_BN(pctx->s); in jpake_dump()
170 JPAKE_DUMP_BN(pctx->k); in jpake_dump()
171 JPAKE_DUMP_BN(pctx->x1); in jpake_dump()
172 JPAKE_DUMP_BN(pctx->x2); in jpake_dump()
173 JPAKE_DUMP_BN(pctx->x3); in jpake_dump()
174 JPAKE_DUMP_BN(pctx->x4); in jpake_dump()
175 JPAKE_DUMP_BN(pctx->g_x1); in jpake_dump()
176 JPAKE_DUMP_BN(pctx->g_x2); in jpake_dump()
177 JPAKE_DUMP_BN(pctx->g_x3); in jpake_dump()
178 JPAKE_DUMP_BN(pctx->g_x4); in jpake_dump()
179 JPAKE_DUMP_BN(pctx->a); in jpake_dump()
180 JPAKE_DUMP_BN(pctx->b); in jpake_dump()
182 JPAKE_DUMP_BUF(pctx->client_id, pctx->client_id_len); in jpake_dump()
183 JPAKE_DUMP_BUF(pctx->server_id, pctx->server_id_len); in jpake_dump()
184 JPAKE_DUMP_BUF(pctx->h_k_cid_sessid, pctx->h_k_cid_sessid_len); in jpake_dump()
185 JPAKE_DUMP_BUF(pctx->h_k_sid_sessid, pctx->h_k_sid_sessid_len); in jpake_dump()