Lines Matching defs:ctx
32 ENCR_DECR_CONTEXT * ctx,
45 if (! sess || ! ctx || ! mech) {
48 if (ctx->active != FALSE) {
105 ctx->context_len = 0;
106 ctx->context = NULL;
122 ctx->key = key_handle;
123 ctx->mech.ulParameterLen = mech->ulParameterLen;
124 ctx->mech.mechanism = mech->mechanism;
125 ctx->mech.pParameter = ptr;
126 ctx->multi = FALSE;
127 ctx->active = TRUE;
133 encr_mgr_cleanup(ENCR_DECR_CONTEXT *ctx)
135 if (! ctx) {
138 ctx->key = 0;
139 ctx->mech.ulParameterLen = 0;
140 ctx->mech.mechanism = 0;
141 ctx->multi = FALSE;
142 ctx->active = FALSE;
143 ctx->context_len = 0;
145 if (ctx->mech.pParameter) {
146 free(ctx->mech.pParameter);
147 ctx->mech.pParameter = NULL;
150 if (ctx->context) {
151 free(ctx->context);
152 ctx->context = NULL;
161 ENCR_DECR_CONTEXT *ctx,
167 if (! sess || ! ctx) {
170 if (ctx->active == FALSE) {
176 if (ctx->multi == TRUE) {
179 switch (ctx->mech.mechanism) {
182 ctx, in_data, in_data_len, out_data,