Lines Matching refs:algo

26 static TEE_Result tee_algo_to_ltc_hashindex(uint32_t algo, int *ltc_hashindex)  in tee_algo_to_ltc_hashindex()  argument
28 switch (algo) { in tee_algo_to_ltc_hashindex()
279 TEE_Result crypto_acipher_rsaes_decrypt(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsaes_decrypt() argument
304 res = tee_algo_to_ltc_hashindex(algo, &ltc_hashindex); in crypto_acipher_rsaes_decrypt()
315 if (algo == TEE_ALG_RSAES_PKCS1_V1_5) { in crypto_acipher_rsaes_decrypt()
375 TEE_Result crypto_acipher_rsaes_encrypt(uint32_t algo, in crypto_acipher_rsaes_encrypt() argument
399 res = tee_algo_to_ltc_hashindex(algo, &ltc_hashindex); in crypto_acipher_rsaes_encrypt()
403 if (algo == TEE_ALG_RSAES_PKCS1_V1_5) in crypto_acipher_rsaes_encrypt()
432 TEE_Result crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsassa_sign() argument
455 switch (algo) { in crypto_acipher_rsassa_sign()
480 ltc_res = tee_algo_to_ltc_hashindex(algo, &ltc_hashindex); in crypto_acipher_rsassa_sign()
486 res = tee_alg_get_digest_size(TEE_DIGEST_HASH_TO_ALGO(algo), in crypto_acipher_rsassa_sign()
523 TEE_Result crypto_acipher_rsassa_verify(uint32_t algo, in crypto_acipher_rsassa_verify() argument
539 if (algo != TEE_ALG_RSASSA_PKCS1_V1_5) { in crypto_acipher_rsassa_verify()
540 res = tee_alg_get_digest_size(TEE_DIGEST_HASH_TO_ALGO(algo), in crypto_acipher_rsassa_verify()
558 if (algo != TEE_ALG_RSASSA_PKCS1_V1_5) { in crypto_acipher_rsassa_verify()
559 res = tee_algo_to_ltc_hashindex(algo, &ltc_hashindex); in crypto_acipher_rsassa_verify()
564 switch (algo) { in crypto_acipher_rsassa_verify()