Searched refs:ltc_res (Results 1 – 10 of 10) sorted by relevance
/optee_os-3.20.0/core/lib/libtomcrypt/ |
A D | sm2-dsa.c | 28 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 D | sm2-pke.c | 30 int ltc_res = 0; in sm2_uncompressed_bytes_to_point() local 36 if (ltc_res != CRYPT_OK) in sm2_uncompressed_bytes_to_point() 42 if (ltc_res != CRYPT_OK) in sm2_uncompressed_bytes_to_point() 46 if (ltc_res != CRYPT_OK) in sm2_uncompressed_bytes_to_point() 120 int ltc_res = 0; in sm2_ltc_pke_decrypt() local 164 if (ltc_res != CRYPT_OK) { in sm2_ltc_pke_decrypt() 170 if (ltc_res != CRYPT_OK) { in sm2_ltc_pke_decrypt() 177 if (ltc_res != CRYPT_OK) { in sm2_ltc_pke_decrypt() 203 if (ltc_res != CRYPT_OK) { in sm2_ltc_pke_decrypt() 342 int ltc_res = 0; in sm2_ltc_pke_encrypt() local [all …]
|
A D | ccm.c | 69 int ltc_res = 0; in crypto_aes_ccm_init() local 99 if (ltc_res != CRYPT_OK) 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 118 if (ltc_res != CRYPT_OK) in crypto_aes_ccm_update_aad() 129 int ltc_res = 0; in crypto_aes_ccm_update_payload() local 145 if (ltc_res != CRYPT_OK) in crypto_aes_ccm_update_payload() 159 int ltc_res = 0; in crypto_aes_ccm_enc_final() local 177 if (ltc_res != CRYPT_OK) in crypto_aes_ccm_enc_final() 190 int ltc_res = 0; in crypto_aes_ccm_dec_final() local [all …]
|
A D | gcm.c | 67 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 D | dsa.c | 64 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 D | sm2-kep.c | 232 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 D | rsa.c | 177 int ltc_res; in sw_crypto_acipher_gen_rsa_key() local 182 if (ltc_res != CRYPT_OK) { in sw_crypto_acipher_gen_rsa_key() 211 int ltc_res; in rsadorep() local 227 switch (ltc_res) { in rsadorep() 383 switch (ltc_res) { in sw_crypto_acipher_rsaes_decrypt() 401 ltc_res, ltc_stat); in sw_crypto_acipher_rsaes_decrypt() 439 int ltc_hashindex, ltc_res, ltc_rsa_algo; in sw_crypto_acipher_rsaes_encrypt() local 468 switch (ltc_res) { in sw_crypto_acipher_rsaes_encrypt() 501 int ltc_res, ltc_rsa_algo, ltc_hashindex; in sw_crypto_acipher_rsassa_sign() local 543 if (ltc_res != CRYPT_OK) { in sw_crypto_acipher_rsassa_sign() [all …]
|
A D | dh.c | 43 int ltc_res = 0; in crypto_acipher_gen_dh_key() local 48 ltc_res = mp_init_multi(<c_tmp_key.base, <c_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 D | ecc.c | 122 int ltc_res = 0; in ecc_set_curve_from_name() local 125 if (ltc_res != CRYPT_OK) in ecc_set_curve_from_name() 128 ltc_res = ecc_set_curve(curve, ltc_key); in ecc_set_curve_from_name() 129 if (ltc_res != CRYPT_OK) in ecc_set_curve_from_name() 140 int ltc_res; in _ltc_ecc_generate_keypair() local 160 if (ltc_res != CRYPT_OK) in _ltc_ecc_generate_keypair() 255 int ltc_res = 0; in _ltc_ecc_sign() local 277 if (ltc_res == CRYPT_OK) { in _ltc_ecc_sign() 295 int ltc_res = 0; in _ltc_ecc_verify() local 326 int ltc_res = 0; in _ltc_ecc_shared_secret() local [all …]
|
A D | acipher_helpers.h | 22 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 11 milliseconds