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.
143 soft_des_ctx = (soft_des_ctx_t *)session_p->encrypt.context;
154 free(session_p->encrypt.context);
155 session_p->encrypt.context = NULL;
166 B_TRUE /* encrypt */);
207 soft_des_ctx = (soft_des_ctx_t *)session_p->encrypt.context;
221 free(session_p->encrypt.context);
222 session_p->encrypt.context = NULL;
230 B_TRUE /* encrypt */);
235 B_TRUE /* encrypt */);
265 * block-level AES encrypt functions are
271 (soft_aes_ctx_t *)session_p->encrypt.context;
281 free(session_p->encrypt.context);
282 session_p->encrypt.context = NULL;
291 B_TRUE /* encrypt */);
320 soft_aes_ctx = (soft_aes_ctx_t *)session_p->encrypt.context;
334 free(session_p->encrypt.context);
335 session_p->encrypt.context = NULL;
343 B_TRUE /* encrypt */);
371 soft_aes_ctx = (soft_aes_ctx_t *)session_p->encrypt.context;
380 free(session_p->encrypt.context);
381 session_p->encrypt.context = NULL;
388 B_TRUE /* encrypt */);
433 (soft_blowfish_ctx_t *)session_p->encrypt.context;
448 free(session_p->encrypt.context);
449 session_p->encrypt.context = NULL;
476 * This function calls the corresponding encrypt routine based
480 * see corresponding encrypt routine.
488 CK_MECHANISM_TYPE mechanism = session_p->encrypt.mech.mechanism;
541 return (soft_arcfour_crypt(&(session_p->encrypt), pData,
607 CK_MECHANISM_TYPE mechanism = session_p->encrypt.mech.mechanism;
648 * CKR_FUNCTION_FAILED: encrypt final function failed
656 CK_MECHANISM_TYPE mechanism = session_p->encrypt.mech.mechanism;
663 if (session_p->encrypt.context == NULL) {
675 soft_des_ctx = (soft_des_ctx_t *)session_p->encrypt.context;
704 * Add padding bytes prior to encrypt final.
745 soft_des_ctx = (soft_des_ctx_t *)session_p->encrypt.context;
770 soft_aes_ctx = (soft_aes_ctx_t *)session_p->encrypt.context;
799 * Add padding bytes prior to encrypt final.
837 soft_aes_ctx = (soft_aes_ctx_t *)session_p->encrypt.context;
864 soft_aes_ctx = (soft_aes_ctx_t *)session_p->encrypt.context;
883 (soft_blowfish_ctx_t *)session_p->encrypt.context;
906 ARCFour_key *key = (ARCFour_key *)session_p->encrypt.context;
920 free(session_p->encrypt.context);
921 session_p->encrypt.context = NULL;
931 * This function is called by the 1st tier of encrypt/decrypt routines
938 soft_crypt_cleanup(soft_session_t *session_p, boolean_t encrypt,
948 active_op = (encrypt) ? &(session_p->encrypt) : &(session_p->decrypt);