Lines Matching refs:algo

29 static TEE_Result tee_algo_to_ltc_hashindex(uint32_t algo, int *ltc_hashindex)  in tee_algo_to_ltc_hashindex()  argument
31 switch (algo) { in tee_algo_to_ltc_hashindex()
325 TEE_Result crypto_acipher_rsaes_decrypt(uint32_t algo,
335 TEE_Result sw_crypto_acipher_rsaes_decrypt(uint32_t algo, in sw_crypto_acipher_rsaes_decrypt() argument
364 res = tee_algo_to_ltc_hashindex(algo, &ltc_hashindex); in sw_crypto_acipher_rsaes_decrypt()
369 if (algo != TEE_ALG_RSAES_PKCS1_V1_5) { in sw_crypto_acipher_rsaes_decrypt()
385 if (algo == TEE_ALG_RSAES_PKCS1_V1_5) { in sw_crypto_acipher_rsaes_decrypt()
444 TEE_Result crypto_acipher_rsaes_encrypt(uint32_t algo,
454 TEE_Result sw_crypto_acipher_rsaes_encrypt(uint32_t algo, in sw_crypto_acipher_rsaes_encrypt() argument
481 res = tee_algo_to_ltc_hashindex(algo, &ltc_hashindex); in sw_crypto_acipher_rsaes_encrypt()
485 if (algo != TEE_ALG_RSAES_PKCS1_V1_5) { in sw_crypto_acipher_rsaes_encrypt()
493 if (algo == TEE_ALG_RSAES_PKCS1_V1_5) in sw_crypto_acipher_rsaes_encrypt()
523 TEE_Result crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key,
529 TEE_Result sw_crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in sw_crypto_acipher_rsassa_sign() argument
552 switch (algo) { in sw_crypto_acipher_rsassa_sign()
578 ltc_res = tee_algo_to_ltc_hashindex(algo, &ltc_hashindex); in sw_crypto_acipher_rsassa_sign()
584 res = tee_alg_get_digest_size(TEE_DIGEST_HASH_TO_ALGO(algo), in sw_crypto_acipher_rsassa_sign()
621 TEE_Result crypto_acipher_rsassa_verify(uint32_t algo,
628 TEE_Result sw_crypto_acipher_rsassa_verify(uint32_t algo, in sw_crypto_acipher_rsassa_verify() argument
651 if (algo != TEE_ALG_RSASSA_PKCS1_V1_5) { in sw_crypto_acipher_rsassa_verify()
652 res = tee_alg_get_digest_size(TEE_DIGEST_HASH_TO_ALGO(algo), in sw_crypto_acipher_rsassa_verify()
670 if (algo != TEE_ALG_RSASSA_PKCS1_V1_5) { in sw_crypto_acipher_rsassa_verify()
671 res = tee_algo_to_ltc_hashindex(algo, &ltc_hashindex); in sw_crypto_acipher_rsassa_verify()
676 switch (algo) { in sw_crypto_acipher_rsassa_verify()