Lines Matching refs:aead_op

189 			      struct cipher_aead_pkt *aead_op,  in ataes132a_aes_ccm_decrypt()  argument
200 if (!aead_op) { in ataes132a_aes_ccm_decrypt()
205 if (!aead_op->pkt) { in ataes132a_aes_ccm_decrypt()
210 in_buf_len = aead_op->pkt->in_len; in ataes132a_aes_ccm_decrypt()
211 expected_out_len = aead_op->pkt->out_len; in ataes132a_aes_ccm_decrypt()
239 if (!aead_op->pkt->in_buf || !aead_op->pkt->out_buf) { in ataes132a_aes_ccm_decrypt()
340 if (aead_op->tag) { in ataes132a_aes_ccm_decrypt()
341 memcpy(param_buffer + 4, aead_op->tag, 16); in ataes132a_aes_ccm_decrypt()
343 memcpy(param_buffer + 20, aead_op->pkt->in_buf, in_buf_len); in ataes132a_aes_ccm_decrypt()
378 memcpy(aead_op->pkt->out_buf, param_buffer + 1, out_len - 1); in ataes132a_aes_ccm_decrypt()
388 struct cipher_aead_pkt *aead_op, in ataes132a_aes_ccm_encrypt() argument
406 if (!aead_op) { in ataes132a_aes_ccm_encrypt()
411 if (!aead_op->pkt) { in ataes132a_aes_ccm_encrypt()
416 buf_len = aead_op->pkt->in_len; in ataes132a_aes_ccm_encrypt()
437 if (!aead_op->pkt->in_buf || !aead_op->pkt->out_buf) { in ataes132a_aes_ccm_encrypt()
522 memcpy(param_buffer + 2, aead_op->pkt->in_buf, buf_len); in ataes132a_aes_ccm_encrypt()
549 if (aead_op->tag) { in ataes132a_aes_ccm_encrypt()
550 memcpy(aead_op->tag, param_buffer + 1, 16); in ataes132a_aes_ccm_encrypt()
553 memcpy(aead_op->pkt->out_buf, param_buffer + 17, out_len - 17U); in ataes132a_aes_ccm_encrypt()
670 struct cipher_aead_pkt *aead_op, uint8_t *nonce) in do_ccm_encrypt_mac() argument
689 if (aead_op->pkt->in_len <= 16 && in do_ccm_encrypt_mac()
690 aead_op->pkt->out_buf_max < 16) { in do_ccm_encrypt_mac()
695 if (aead_op->pkt->in_len > 16 && in do_ccm_encrypt_mac()
696 aead_op->pkt->out_buf_max < 32) { in do_ccm_encrypt_mac()
701 if (aead_op->pkt->in_len <= 16) { in do_ccm_encrypt_mac()
702 aead_op->pkt->out_len = 16; in do_ccm_encrypt_mac()
703 } else if (aead_op->pkt->in_len > 16) { in do_ccm_encrypt_mac()
704 aead_op->pkt->out_len = 32; in do_ccm_encrypt_mac()
707 if (aead_op->ad != NULL || aead_op->ad_len != 0U) { in do_ccm_encrypt_mac()
713 aead_op, nonce, NULL); in do_ccm_encrypt_mac()
719 struct cipher_aead_pkt *aead_op, uint8_t *nonce) in do_ccm_decrypt_auth() argument
738 if (aead_op->pkt->in_len <= 16 && in do_ccm_decrypt_auth()
739 aead_op->pkt->out_buf_max < 16) { in do_ccm_decrypt_auth()
744 if (aead_op->pkt->in_len > 16 && in do_ccm_decrypt_auth()
745 aead_op->pkt->out_buf_max < 32) { in do_ccm_decrypt_auth()
750 aead_op->pkt->ctx = ctx; in do_ccm_decrypt_auth()
752 if (aead_op->ad != NULL || aead_op->ad_len != 0U) { in do_ccm_decrypt_auth()
759 NULL, aead_op, nonce); in do_ccm_decrypt_auth()