Lines Matching refs:ltc_res

185 	int ltc_res;  in sw_crypto_acipher_gen_rsa_key()  local
188 ltc_res = rsa_make_key_bn_e(NULL, find_prng("prng_crypto"), in sw_crypto_acipher_gen_rsa_key()
190 if (ltc_res != CRYPT_OK) { in sw_crypto_acipher_gen_rsa_key()
219 int ltc_res; in rsadorep() local
233 ltc_res = rsa_exptmod(src, src_len, buf, &blen, ltc_key->type, in rsadorep()
235 switch (ltc_res) { in rsadorep()
240 EMSG("rsa_exptmod() returned %d", ltc_res); in rsadorep()
247 EMSG("rsa_exptmod() returned %d", ltc_res); in rsadorep()
347 int ltc_hashindex, ltc_mgfindex, ltc_res, ltc_stat, ltc_rsa_algo; in sw_crypto_acipher_rsaes_decrypt() local
401 ltc_res = rsa_decrypt_key_ex(src, src_len, buf, &blen, in sw_crypto_acipher_rsaes_decrypt()
405 switch (ltc_res) { in sw_crypto_acipher_rsaes_decrypt()
409 EMSG("rsa_decrypt_key_ex() returned %d", ltc_res); in sw_crypto_acipher_rsaes_decrypt()
416 EMSG("rsa_decrypt_key_ex() returned %d", ltc_res); in sw_crypto_acipher_rsaes_decrypt()
423 ltc_res, ltc_stat); in sw_crypto_acipher_rsaes_decrypt()
465 int ltc_hashindex, ltc_mgfindex, ltc_res, ltc_rsa_algo; in sw_crypto_acipher_rsaes_encrypt() local
498 ltc_res = rsa_encrypt_key_ex(src, src_len, dst, in sw_crypto_acipher_rsaes_encrypt()
503 switch (ltc_res) { in sw_crypto_acipher_rsaes_encrypt()
507 EMSG("rsa_encrypt_key_ex() returned %d", ltc_res); in sw_crypto_acipher_rsaes_encrypt()
536 int ltc_res, ltc_rsa_algo, ltc_hashindex; in sw_crypto_acipher_rsassa_sign() local
578 ltc_res = tee_algo_to_ltc_hashindex(algo, &ltc_hashindex); in sw_crypto_acipher_rsassa_sign()
579 if (ltc_res != CRYPT_OK) { in sw_crypto_acipher_rsassa_sign()
605 ltc_res = rsa_sign_hash_ex(msg, msg_len, sig, &ltc_sig_len, in sw_crypto_acipher_rsassa_sign()
611 if (ltc_res != CRYPT_OK) { in sw_crypto_acipher_rsassa_sign()
637 int stat, ltc_hashindex, ltc_res, ltc_rsa_algo; in sw_crypto_acipher_rsassa_verify() local
702 ltc_res = rsa_verify_hash_ex(sig, sig_len, msg, msg_len, ltc_rsa_algo, in sw_crypto_acipher_rsassa_verify()
704 res = convert_ltc_verify_status(ltc_res, stat); in sw_crypto_acipher_rsassa_verify()