Home
last modified time | relevance | path

Searched refs:ltc_res (Results 1 – 10 of 10) sorted by relevance

/optee_os/core/lib/libtomcrypt/
A Dsm2-dsa.c28 int ltc_res = 0; in sm2_ltc_dsa_sign() local
41 if (ltc_res != CRYPT_OK) in sm2_ltc_dsa_sign()
64 if (ltc_res != CRYPT_OK) { in sm2_ltc_dsa_sign()
73 if (ltc_res != CRYPT_OK) { in sm2_ltc_dsa_sign()
82 if (ltc_res != CRYPT_OK) { in sm2_ltc_dsa_sign()
87 if (ltc_res != CRYPT_OK) { in sm2_ltc_dsa_sign()
98 if (ltc_res != CRYPT_OK) { in sm2_ltc_dsa_sign()
103 if (ltc_res != CRYPT_OK) { in sm2_ltc_dsa_sign()
108 if (ltc_res != CRYPT_OK) { in sm2_ltc_dsa_sign()
145 int ltc_res = 0; in sm2_ltc_dsa_verify() local
[all …]
A Dsm2-pke.c29 int ltc_res = 0; in sm2_uncompressed_bytes_to_point() local
35 if (ltc_res != CRYPT_OK) in sm2_uncompressed_bytes_to_point()
41 if (ltc_res != CRYPT_OK) in sm2_uncompressed_bytes_to_point()
45 if (ltc_res != CRYPT_OK) in sm2_uncompressed_bytes_to_point()
119 int ltc_res = 0; in sm2_ltc_pke_decrypt() local
163 if (ltc_res != CRYPT_OK) { in sm2_ltc_pke_decrypt()
169 if (ltc_res != CRYPT_OK) { in sm2_ltc_pke_decrypt()
176 if (ltc_res != CRYPT_OK) { in sm2_ltc_pke_decrypt()
202 if (ltc_res != CRYPT_OK) { in sm2_ltc_pke_decrypt()
341 int ltc_res = 0; in sm2_ltc_pke_encrypt() local
[all …]
A Dccm.c68 int ltc_res = 0; in crypto_aes_ccm_init() local
94 if (ltc_res != CRYPT_OK) in crypto_aes_ccm_init()
99 if (ltc_res != CRYPT_OK) in crypto_aes_ccm_init()
109 int ltc_res = 0; in crypto_aes_ccm_update_aad() local
113 if (ltc_res != CRYPT_OK) in crypto_aes_ccm_update_aad()
124 int ltc_res = 0; in crypto_aes_ccm_update_payload() local
140 if (ltc_res != CRYPT_OK) in crypto_aes_ccm_update_payload()
154 int ltc_res = 0; in crypto_aes_ccm_enc_final() local
172 if (ltc_res != CRYPT_OK) in crypto_aes_ccm_enc_final()
185 int ltc_res = 0; in crypto_aes_ccm_dec_final() local
[all …]
A Dgcm.c67 int ltc_res = 0; in crypto_aes_gcm_init() local
79 if (ltc_res != CRYPT_OK) in crypto_aes_gcm_init()
84 if (ltc_res != CRYPT_OK) in crypto_aes_gcm_init()
94 int ltc_res = 0; in crypto_aes_gcm_update_aad() local
98 if (ltc_res != CRYPT_OK) in crypto_aes_gcm_update_aad()
110 int ltc_res = 0; in crypto_aes_gcm_update_payload() local
135 if (ltc_res != CRYPT_OK) in crypto_aes_gcm_update_payload()
148 int ltc_res = 0; in crypto_aes_gcm_enc_final() local
165 if (ltc_res != CRYPT_OK) in crypto_aes_gcm_enc_final()
178 int ltc_res = 0; in crypto_aes_gcm_dec_final() local
[all …]
A Dsm2-kep.c232 int ltc_res = 0; in sm2_kep_derive() local
262 if (ltc_res != CRYPT_OK) in sm2_kep_derive()
266 if (ltc_res != CRYPT_OK) in sm2_kep_derive()
273 if (ltc_res != CRYPT_OK) in sm2_kep_derive()
287 if (ltc_res != CRYPT_OK) in sm2_kep_derive()
291 if (ltc_res != CRYPT_OK) in sm2_kep_derive()
295 if (ltc_res != CRYPT_OK) in sm2_kep_derive()
299 if (ltc_res != CRYPT_OK) in sm2_kep_derive()
304 if (ltc_res != CRYPT_OK) in sm2_kep_derive()
308 if (ltc_res != CRYPT_OK) in sm2_kep_derive()
[all …]
A Ddsa.c64 int ltc_res = 0; in crypto_acipher_gen_dsa_key() local
71 if (ltc_res) in crypto_acipher_gen_dsa_key()
82 if (ltc_res) in crypto_acipher_gen_dsa_key()
101 int ltc_res; in crypto_acipher_dsa_sign() local
137 ltc_res = mp_init_multi(&r, &s, NULL); in crypto_acipher_dsa_sign()
138 if (ltc_res != CRYPT_OK) { in crypto_acipher_dsa_sign()
146 if (ltc_res == CRYPT_OK) { in crypto_acipher_dsa_sign()
169 int ltc_stat, ltc_res; in crypto_acipher_dsa_verify() local
187 ltc_res = mp_init_multi(&r, &s, NULL); in crypto_acipher_dsa_verify()
188 if (ltc_res != CRYPT_OK) { in crypto_acipher_dsa_verify()
[all …]
A Drsa.c152 int ltc_res; in crypto_acipher_gen_rsa_key() local
157 if (ltc_res != CRYPT_OK) { in crypto_acipher_gen_rsa_key()
186 int ltc_res; in rsadorep() local
202 switch (ltc_res) { in rsadorep()
335 switch (ltc_res) { in crypto_acipher_rsaes_decrypt()
353 ltc_res, ltc_stat); in crypto_acipher_rsaes_decrypt()
383 int ltc_hashindex, ltc_res, ltc_rsa_algo; in crypto_acipher_rsaes_encrypt() local
412 switch (ltc_res) { in crypto_acipher_rsaes_encrypt()
439 int ltc_res, ltc_rsa_algo, ltc_hashindex; in crypto_acipher_rsassa_sign() local
481 if (ltc_res != CRYPT_OK) { in crypto_acipher_rsassa_sign()
[all …]
A Decc.c122 int ltc_res; in _ltc_ecc_generate_keypair() local
137 if (ltc_res != CRYPT_OK) in _ltc_ecc_generate_keypair()
171 int ltc_res = 0; in ecc_set_curve_from_name() local
174 if (ltc_res != CRYPT_OK) in ecc_set_curve_from_name()
177 ltc_res = ecc_set_curve(curve, ltc_key); in ecc_set_curve_from_name()
178 if (ltc_res != CRYPT_OK) in ecc_set_curve_from_name()
250 int ltc_res = 0; in _ltc_ecc_sign() local
272 if (ltc_res == CRYPT_OK) { in _ltc_ecc_sign()
290 int ltc_res = 0; in _ltc_ecc_verify() local
321 int ltc_res = 0; in _ltc_ecc_shared_secret() local
[all …]
A Ddh.c43 int ltc_res = 0; in crypto_acipher_gen_dh_key() local
48 ltc_res = mp_init_multi(&ltc_tmp_key.base, &ltc_tmp_key.prime, NULL); in crypto_acipher_gen_dh_key()
49 if (ltc_res != CRYPT_OK) in crypto_acipher_gen_dh_key()
55 ltc_res = dh_make_key(NULL, find_prng("prng_crypto"), q, xbits, in crypto_acipher_gen_dh_key()
57 if (ltc_res != CRYPT_OK) { in crypto_acipher_gen_dh_key()
A Dacipher_helpers.h22 static inline TEE_Result convert_ltc_verify_status(int ltc_res, int ltc_stat) in convert_ltc_verify_status() argument
24 switch (ltc_res) { in convert_ltc_verify_status()

Completed in 13 milliseconds