Lines Matching refs:algo
41 static uint32_t tee_algo_to_mbedtls_hash_algo(uint32_t algo) in tee_algo_to_mbedtls_hash_algo() argument
43 switch (algo) { in tee_algo_to_mbedtls_hash_algo()
454 TEE_Result crypto_acipher_rsaes_decrypt(uint32_t algo,
463 TEE_Result sw_crypto_acipher_rsaes_decrypt(uint32_t algo, in sw_crypto_acipher_rsaes_decrypt() argument
503 if (algo == TEE_ALG_RSAES_PKCS1_V1_5) { in sw_crypto_acipher_rsaes_decrypt()
523 if (algo != TEE_ALG_RSAES_PKCS1_V1_5) { in sw_crypto_acipher_rsaes_decrypt()
524 md_algo = tee_algo_to_mbedtls_hash_algo(algo); in sw_crypto_acipher_rsaes_decrypt()
562 TEE_Result crypto_acipher_rsaes_encrypt(uint32_t algo,
571 TEE_Result sw_crypto_acipher_rsaes_encrypt(uint32_t algo, in sw_crypto_acipher_rsaes_encrypt() argument
615 if (algo == TEE_ALG_RSAES_PKCS1_V1_5) in sw_crypto_acipher_rsaes_encrypt()
624 if (algo != TEE_ALG_RSAES_PKCS1_V1_5) { in sw_crypto_acipher_rsaes_encrypt()
625 md_algo = tee_algo_to_mbedtls_hash_algo(algo); in sw_crypto_acipher_rsaes_encrypt()
652 TEE_Result crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key,
658 TEE_Result sw_crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in sw_crypto_acipher_rsassa_sign() argument
691 switch (algo) { in sw_crypto_acipher_rsassa_sign()
713 res = tee_alg_get_digest_size(TEE_DIGEST_HASH_TO_ALGO(algo), in sw_crypto_acipher_rsassa_sign()
731 md_algo = tee_algo_to_mbedtls_hash_algo(algo); in sw_crypto_acipher_rsassa_sign()
753 TEE_Result crypto_acipher_rsassa_verify(uint32_t algo,
761 TEE_Result sw_crypto_acipher_rsassa_verify(uint32_t algo, in sw_crypto_acipher_rsassa_verify() argument
804 res = tee_alg_get_digest_size(TEE_DIGEST_HASH_TO_ALGO(algo), in sw_crypto_acipher_rsassa_verify()
822 switch (algo) { in sw_crypto_acipher_rsassa_verify()
846 md_algo = tee_algo_to_mbedtls_hash_algo(algo); in sw_crypto_acipher_rsassa_verify()