Lines Matching refs:state

2304 	PK11_CIPHER_STATE *state = (PK11_CIPHER_STATE *) ctx->cipher_data;
2308 state->sp = NULL;
2355 state->sp = sp;
2396 state->sp = sp;
2444 PK11_CIPHER_STATE *state = (PK11_CIPHER_STATE *) ctx->cipher_data;
2449 if (state == NULL || state->sp == NULL)
2452 sp = (PK11_SESSION *) state->sp;
2514 PK11_CIPHER_STATE *state = ctx->cipher_data;
2516 if (state != NULL && state->sp != NULL)
2524 state->sp->session, buf, &len);
2527 state->sp->session, buf, &len);
2533 pk11_return_session(state->sp, OP_CIPHER);
2537 pk11_return_session(state->sp, OP_CIPHER);
2538 state->sp = NULL;
2735 PK11_CIPHER_STATE *state = (PK11_CIPHER_STATE *) ctx->md_data;
2737 state->sp = NULL;
2761 state->sp = sp;
2770 PK11_CIPHER_STATE *state = (PK11_CIPHER_STATE *) ctx->md_data;
2776 if (state == NULL || state->sp == NULL)
2779 rv = pFuncList->C_DigestUpdate(state->sp->session, (CK_BYTE *) data,
2785 pk11_return_session(state->sp, OP_DIGEST);
2786 state->sp = NULL;
2798 PK11_CIPHER_STATE *state = (PK11_CIPHER_STATE *) ctx->md_data;
2801 if (state == NULL || state->sp == NULL)
2804 rv = pFuncList->C_DigestFinal(state->sp->session, md, &len);
2809 pk11_return_session(state->sp, OP_DIGEST);
2810 state->sp = NULL;
2821 pk11_return_session(state->sp, OP_DIGEST);
2822 state->sp = NULL;
2832 PK11_CIPHER_STATE *state, *state_to;
2839 /* The copy-from state */
2840 state = (PK11_CIPHER_STATE *) from->md_data;
2841 if (state->sp == NULL)
2844 /* Initialize the copy-to state */
2849 /* Get the size of the operation state of the copy-from session */
2850 rv = pFuncList->C_GetOperationState(state->sp->session, NULL,
2871 /* Get the operation state of the copy-from session */
2872 rv = pFuncList->C_GetOperationState(state->sp->session, pstate,
2882 /* Set the operation state of the copy-to session */
2901 /* Return any pending session state to the pool */
2905 PK11_CIPHER_STATE *state = ctx->md_data;
2908 if (state != NULL && state->sp != NULL)
2911 * If state->sp is not NULL then pk11_digest_final() has not