Lines Matching refs:digest
362 if (session_p->digest.context != NULL) in soft_delete_session()
363 free(session_p->digest.context); in soft_delete_session()
508 if (session_p->digest.flags & CRYPTO_OPERATION_ACTIVE) { in soft_get_operationstate()
512 switch (session_p->digest.mech.mechanism) { in soft_get_operationstate()
545 &session_p->digest, in soft_get_operationstate()
548 switch (session_p->digest.mech.mechanism) { in soft_get_operationstate()
554 session_p->digest.context, in soft_get_operationstate()
563 session_p->digest.context, in soft_get_operationstate()
665 if (session_p->digest.context && in soft_set_operationstate()
666 (session_p->digest.mech.mechanism != mech)) { in soft_set_operationstate()
667 free_it = session_p->digest.context; in soft_set_operationstate()
668 session_p->digest.context = NULL; in soft_set_operationstate()
671 if (session_p->digest.context == NULL) { in soft_set_operationstate()
672 session_p->digest.context = alloc_digest(mech); in soft_set_operationstate()
674 if (session_p->digest.context == NULL) { in soft_set_operationstate()
679 session_p->digest.context = free_it; in soft_set_operationstate()
687 session_p->digest.mech.mechanism = mech; in soft_set_operationstate()
688 session_p->digest.flags = p_active_op->flags; in soft_set_operationstate()
693 (void) memcpy((CK_BYTE *)session_p->digest.context, in soft_set_operationstate()
699 (void) memcpy((CK_BYTE *)session_p->digest.context, in soft_set_operationstate()