Lines Matching refs:ltc_res
68 int ltc_res = 0; in crypto_aes_gcm_init() local
79 ltc_res = gcm_init(&gcm->ctx, ltc_cipherindex, key, key_len); in crypto_aes_gcm_init()
80 if (ltc_res != CRYPT_OK) in crypto_aes_gcm_init()
84 ltc_res = gcm_add_iv(&gcm->ctx, nonce, nonce_len); in crypto_aes_gcm_init()
85 if (ltc_res != CRYPT_OK) in crypto_aes_gcm_init()
95 int ltc_res = 0; in crypto_aes_gcm_update_aad() local
98 ltc_res = gcm_add_aad(&gcm->ctx, data, len); in crypto_aes_gcm_update_aad()
99 if (ltc_res != CRYPT_OK) in crypto_aes_gcm_update_aad()
111 int ltc_res = 0; in crypto_aes_gcm_update_payload() local
135 ltc_res = gcm_process(&gcm->ctx, pt, len, ct, dir); in crypto_aes_gcm_update_payload()
136 if (ltc_res != CRYPT_OK) in crypto_aes_gcm_update_payload()
149 int ltc_res = 0; in crypto_aes_gcm_enc_final() local
165 ltc_res = gcm_done(&gcm->ctx, dst_tag, (unsigned long *)dst_tag_len); in crypto_aes_gcm_enc_final()
166 if (ltc_res != CRYPT_OK) in crypto_aes_gcm_enc_final()
179 int ltc_res = 0; in crypto_aes_gcm_dec_final() local
195 ltc_res = gcm_done(&gcm->ctx, dst_tag, <c_tag_len); in crypto_aes_gcm_dec_final()
196 if (ltc_res != CRYPT_OK) in crypto_aes_gcm_dec_final()