Lines Matching refs:ccm
71 struct tee_ccm_state *ccm = to_tee_ccm_state(aectx); in crypto_aes_ccm_init() local
77 memset(&ccm->ctx, 0, sizeof(ccm->ctx)); in crypto_aes_ccm_init()
78 ccm->tag_len = tag_len; in crypto_aes_ccm_init()
97 ltc_res = ccm_init(&ccm->ctx, ltc_cipherindex, key, key_len, in crypto_aes_ccm_init()
103 ltc_res = ccm_add_nonce(&ccm->ctx, nonce, nonce_len); in crypto_aes_ccm_init()
113 struct tee_ccm_state *ccm = to_tee_ccm_state(aectx); in crypto_aes_ccm_update_aad() local
117 ltc_res = ccm_add_aad(&ccm->ctx, data, len); in crypto_aes_ccm_update_aad()
131 struct tee_ccm_state *ccm = to_tee_ccm_state(aectx); in crypto_aes_ccm_update_payload() local
144 ltc_res = ccm_process(&ccm->ctx, pt, len, ct, dir); in crypto_aes_ccm_update_payload()
158 struct tee_ccm_state *ccm = to_tee_ccm_state(aectx); in crypto_aes_ccm_enc_final() local
168 if (*dst_tag_len < ccm->tag_len) { in crypto_aes_ccm_enc_final()
169 *dst_tag_len = ccm->tag_len; in crypto_aes_ccm_enc_final()
172 *dst_tag_len = ccm->tag_len; in crypto_aes_ccm_enc_final()
175 ltc_res = ccm_done(&ccm->ctx, dst_tag, in crypto_aes_ccm_enc_final()
189 struct tee_ccm_state *ccm = to_tee_ccm_state(aectx); in crypto_aes_ccm_dec_final() local
206 ltc_res = ccm_done(&ccm->ctx, dst_tag, <c_tag_len); in crypto_aes_ccm_dec_final()