Lines Matching defs:encrypt
50 * Perform encrypt init operation internally for the support of
64 /* Check to see if encrypt operation is already active */
65 if (session_p->encrypt.flags & CRYPTO_OPERATION_ACTIVE) {
70 session_p->encrypt.flags = CRYPTO_OPERATION_ACTIVE;
78 session_p->encrypt.flags &= ~CRYPTO_OPERATION_ACTIVE;
95 * encrypt init routine based on the mechanism.
166 soft_des_ctx = (soft_des_ctx_t *)session_p->encrypt.context;
180 free(session_p->encrypt.context);
181 session_p->encrypt.context = NULL;
220 soft_aes_ctx = (soft_aes_ctx_t *)session_p->encrypt.context;
234 free(session_p->encrypt.context);
235 session_p->encrypt.context = NULL;
264 soft_aes_ctx = (soft_aes_ctx_t *)session_p->encrypt.context;
273 free(session_p->encrypt.context);
274 session_p->encrypt.context = NULL;
321 (soft_blowfish_ctx_t *)session_p->encrypt.context;
336 free(session_p->encrypt.context);
337 session_p->encrypt.context = NULL;
364 * This function calls the corresponding encrypt routine based
368 * see corresponding encrypt routine.
376 CK_MECHANISM_TYPE mechanism = session_p->encrypt.mech.mechanism;
429 return (soft_arcfour_crypt(&(session_p->encrypt), pData,
495 CK_MECHANISM_TYPE mechanism = session_p->encrypt.mech.mechanism;
536 * CKR_FUNCTION_FAILED: encrypt final function failed
544 CK_MECHANISM_TYPE mechanism = session_p->encrypt.mech.mechanism;
551 if (session_p->encrypt.context == NULL) {
563 soft_des_ctx = (soft_des_ctx_t *)session_p->encrypt.context;
592 * Add padding bytes prior to encrypt final.
633 soft_des_ctx = (soft_des_ctx_t *)session_p->encrypt.context;
658 soft_aes_ctx = (soft_aes_ctx_t *)session_p->encrypt.context;
687 * Add padding bytes prior to encrypt final.
725 soft_aes_ctx = (soft_aes_ctx_t *)session_p->encrypt.context;
753 soft_aes_ctx = (soft_aes_ctx_t *)session_p->encrypt.context;
787 (soft_blowfish_ctx_t *)session_p->encrypt.context;
810 ARCFour_key *key = (ARCFour_key *)session_p->encrypt.context;
824 free(session_p->encrypt.context);
825 session_p->encrypt.context = NULL;
835 * This function is called by the 1st tier of encrypt/decrypt routines
842 soft_crypt_cleanup(soft_session_t *session_p, boolean_t encrypt,
852 active_op = (encrypt) ? &(session_p->encrypt) : &(session_p->decrypt);