Lines Matching refs:md_algo
480 uint32_t md_algo = MBEDTLS_MD_NONE; in sw_crypto_acipher_rsaes_decrypt() local
524 md_algo = tee_algo_to_mbedtls_hash_algo(algo); in sw_crypto_acipher_rsaes_decrypt()
525 if (md_algo == MBEDTLS_MD_NONE) { in sw_crypto_acipher_rsaes_decrypt()
529 if (md_algo != tee_algo_to_mbedtls_hash_algo(mgf_algo)) { in sw_crypto_acipher_rsaes_decrypt()
536 mbedtls_rsa_set_padding(rsa, lmd_padding, md_algo); in sw_crypto_acipher_rsaes_decrypt()
586 uint32_t md_algo = MBEDTLS_MD_NONE; in sw_crypto_acipher_rsaes_encrypt() local
625 md_algo = tee_algo_to_mbedtls_hash_algo(algo); in sw_crypto_acipher_rsaes_encrypt()
627 if (md_algo == MBEDTLS_MD_NONE || in sw_crypto_acipher_rsaes_encrypt()
628 md_algo != tee_algo_to_mbedtls_hash_algo(mgf_algo)) { in sw_crypto_acipher_rsaes_encrypt()
634 mbedtls_rsa_set_padding(rsa, lmd_padding, md_algo); in sw_crypto_acipher_rsaes_encrypt()
671 uint32_t md_algo = 0; in sw_crypto_acipher_rsassa_sign() local
731 md_algo = tee_algo_to_mbedtls_hash_algo(algo); in sw_crypto_acipher_rsassa_sign()
732 if (md_algo == MBEDTLS_MD_NONE) { in sw_crypto_acipher_rsassa_sign()
738 mbedtls_rsa_set_padding(rsa, lmd_padding, md_algo); in sw_crypto_acipher_rsassa_sign()
740 lmd_res = pk_info->sign_func(&ctx, md_algo, msg, msg_len, sig, in sw_crypto_acipher_rsassa_sign()
776 uint32_t md_algo = 0; in sw_crypto_acipher_rsassa_verify() local
846 md_algo = tee_algo_to_mbedtls_hash_algo(algo); in sw_crypto_acipher_rsassa_verify()
847 if (md_algo == MBEDTLS_MD_NONE) { in sw_crypto_acipher_rsassa_verify()
852 mbedtls_rsa_set_padding(rsa, lmd_padding, md_algo); in sw_crypto_acipher_rsassa_verify()
855 lmd_res = pk_info->verify_func(&ctx, md_algo, msg, msg_len, in sw_crypto_acipher_rsassa_verify()