Lines Matching defs:encrypt
85 boolean_t encrypt)
105 if (encrypt) {
107 session_p->encrypt.context = kms_aes_ctx;
108 session_p->encrypt.mech.mechanism = pMechanism->mechanism;
183 * This function calls the corresponding encrypt routine based
190 * CKR_FUNCTION_FAILED: encrypt function failed
202 (kms_aes_ctx_t *)session_p->encrypt.context;
204 CK_MECHANISM_TYPE mechanism = session_p->encrypt.mech.mechanism;
377 * For encrypt update, if there is remaining data,
443 free(session_p->encrypt.context);
444 session_p->encrypt.context = NULL;
780 * CKR_FUNCTION_FAILED: encrypt final function failed
788 CK_MECHANISM_TYPE mechanism = session_p->encrypt.mech.mechanism;
795 if (session_p->encrypt.context == NULL) {
803 aes_ctx = (kms_aes_ctx_t *)session_p->encrypt.context;
832 * Add padding bytes prior to encrypt final.
865 aes_ctx = (kms_aes_ctx_t *)session_p->encrypt.context;
887 free(session_p->encrypt.context);
888 session_p->encrypt.context = NULL;