Lines Matching defs:encrypt
60 kms_aes_ctx = (kms_aes_ctx_t *)session_p->encrypt.context;
75 free(session_p->encrypt.context);
76 session_p->encrypt.context = NULL;
86 kms_crypt_cleanup(kms_session_t *session_p, boolean_t encrypt,
97 active_op = (encrypt) ? &(session_p->encrypt) : &(session_p->decrypt);
165 /* Check to see if encrypt operation is already active. */
166 if (session_p->encrypt.flags & CRYPTO_OPERATION_ACTIVE) {
176 session_p->encrypt.flags = CRYPTO_OPERATION_ACTIVE;
185 session_p->encrypt.flags &= ~CRYPTO_OPERATION_ACTIVE;
239 if (!(session_p->encrypt.flags & CRYPTO_OPERATION_ACTIVE)) {
248 if (session_p->encrypt.flags & CRYPTO_OPERATION_UPDATE) {
251 * operation, so we'll leave the active encrypt operation
253 * encrypt update operation.
268 * We will not terminate the active encrypt operation flag,
330 if (!(session_p->encrypt.flags & CRYPTO_OPERATION_ACTIVE)) {
335 session_p->encrypt.flags |= CRYPTO_OPERATION_UPDATE;
354 * After an error occurred, terminate the current encrypt
392 if (!(session_p->encrypt.flags & CRYPTO_OPERATION_ACTIVE)) {
406 * We will not terminate the active encrypt operation flag,
415 /* Terminates the active encrypt operation. */
417 session_p->encrypt.flags = 0;
424 /* Terminates the active encrypt operation. */