Lines Matching refs:state

2247 	PK11_CIPHER_STATE *state = (PK11_CIPHER_STATE *) ctx->cipher_data;
2251 state->sp = NULL;
2299 state->sp = sp;
2339 state->sp = sp;
2386 PK11_CIPHER_STATE *state = (PK11_CIPHER_STATE *) ctx->cipher_data;
2391 if (state == NULL || state->sp == NULL) {
2395 sp = (PK11_SESSION *) state->sp;
2454 PK11_CIPHER_STATE *state = ctx->cipher_data;
2456 if (state != NULL && state->sp != NULL) {
2463 state->sp->session, buf, &len);
2466 state->sp->session, buf, &len);
2472 pk11_return_session(state->sp, OP_CIPHER);
2476 pk11_return_session(state->sp, OP_CIPHER);
2477 state->sp = NULL;
2674 PK11_CIPHER_STATE *state = (PK11_CIPHER_STATE *) ctx->md_data;
2676 state->sp = NULL;
2700 state->sp = sp;
2709 PK11_CIPHER_STATE *state = (PK11_CIPHER_STATE *) ctx->md_data;
2716 if (state == NULL || state->sp == NULL) {
2720 rv = pFuncList->C_DigestUpdate(state->sp->session, (CK_BYTE *) data,
2724 pk11_return_session(state->sp, OP_DIGEST);
2725 state->sp = NULL;
2737 PK11_CIPHER_STATE *state = (PK11_CIPHER_STATE *) ctx->md_data;
2740 if (state == NULL || state->sp == NULL) {
2744 rv = pFuncList->C_DigestFinal(state->sp->session, md, &len);
2747 pk11_return_session(state->sp, OP_DIGEST);
2748 state->sp = NULL;
2760 pk11_return_session(state->sp, OP_DIGEST);
2761 state->sp = NULL;
2771 PK11_CIPHER_STATE *state, *state_to;
2779 /* The copy-from state */
2780 state = (PK11_CIPHER_STATE *) from->md_data;
2781 if (state->sp == NULL) {
2785 /* Initialize the copy-to state */
2791 /* Get the size of the operation state of the copy-from session */
2792 rv = pFuncList->C_GetOperationState(state->sp->session, NULL,
2809 /* Get the operation state of the copy-from session */
2810 rv = pFuncList->C_GetOperationState(state->sp->session, pstate,
2818 /* Set the operation state of the copy-to session */
2836 /* Return any pending session state to the pool */
2840 PK11_CIPHER_STATE *state = ctx->md_data;
2843 if (state != NULL && state->sp != NULL) {
2845 * If state->sp is not NULL then pk11_digest_final() has not