Lines Matching refs:algo
38 static uint32_t tee_algo_to_mbedtls_hash_algo(uint32_t algo) in tee_algo_to_mbedtls_hash_algo() argument
40 switch (algo) { in tee_algo_to_mbedtls_hash_algo()
350 TEE_Result crypto_acipher_rsaes_decrypt(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsaes_decrypt() argument
374 if (algo == TEE_ALG_RSAES_PKCS1_V1_5) { in crypto_acipher_rsaes_decrypt()
400 if (algo != TEE_ALG_RSAES_PKCS1_V1_5) { in crypto_acipher_rsaes_decrypt()
401 md_algo = tee_algo_to_mbedtls_hash_algo(algo); in crypto_acipher_rsaes_decrypt()
438 TEE_Result crypto_acipher_rsaes_encrypt(uint32_t algo, in crypto_acipher_rsaes_encrypt() argument
468 if (algo == TEE_ALG_RSAES_PKCS1_V1_5) in crypto_acipher_rsaes_encrypt()
483 if (algo != TEE_ALG_RSAES_PKCS1_V1_5) { in crypto_acipher_rsaes_encrypt()
484 md_algo = tee_algo_to_mbedtls_hash_algo(algo); in crypto_acipher_rsaes_encrypt()
509 TEE_Result crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsassa_sign() argument
526 switch (algo) { in crypto_acipher_rsassa_sign()
547 res = tee_alg_get_digest_size(TEE_DIGEST_HASH_TO_ALGO(algo), in crypto_acipher_rsassa_sign()
565 md_algo = tee_algo_to_mbedtls_hash_algo(algo); in crypto_acipher_rsassa_sign()
596 TEE_Result crypto_acipher_rsassa_verify(uint32_t algo, in crypto_acipher_rsassa_verify() argument
618 res = tee_alg_get_digest_size(TEE_DIGEST_HASH_TO_ALGO(algo), in crypto_acipher_rsassa_verify()
636 switch (algo) { in crypto_acipher_rsassa_verify()
657 md_algo = tee_algo_to_mbedtls_hash_algo(algo); in crypto_acipher_rsassa_verify()