Lines Matching refs:ltc_res
69 int ltc_res = 0; in crypto_aes_ccm_init() local
97 ltc_res = ccm_init(&ccm->ctx, ltc_cipherindex, key, key_len, in crypto_aes_ccm_init()
99 if (ltc_res != CRYPT_OK) in crypto_aes_ccm_init()
103 ltc_res = ccm_add_nonce(&ccm->ctx, nonce, nonce_len); in crypto_aes_ccm_init()
104 if (ltc_res != CRYPT_OK) in crypto_aes_ccm_init()
114 int ltc_res = 0; in crypto_aes_ccm_update_aad() local
117 ltc_res = ccm_add_aad(&ccm->ctx, data, len); in crypto_aes_ccm_update_aad()
118 if (ltc_res != CRYPT_OK) in crypto_aes_ccm_update_aad()
129 int ltc_res = 0; in crypto_aes_ccm_update_payload() local
144 ltc_res = ccm_process(&ccm->ctx, pt, len, ct, dir); in crypto_aes_ccm_update_payload()
145 if (ltc_res != CRYPT_OK) in crypto_aes_ccm_update_payload()
159 int ltc_res = 0; in crypto_aes_ccm_enc_final() local
175 ltc_res = ccm_done(&ccm->ctx, dst_tag, in crypto_aes_ccm_enc_final()
177 if (ltc_res != CRYPT_OK) in crypto_aes_ccm_enc_final()
190 int ltc_res = 0; 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()
207 if (ltc_res != CRYPT_OK) in crypto_aes_ccm_dec_final()