rsa.c: rename getter function of hash_id

Signed-off-by: Yanray Wang <yanray.wang@arm.com>
diff --git a/include/mbedtls/rsa.h b/include/mbedtls/rsa.h
index 7b7c3e8..da8639b 100644
--- a/include/mbedtls/rsa.h
+++ b/include/mbedtls/rsa.h
@@ -201,7 +201,7 @@
  * \return         Hash identifier of mbedtls_md_type_t type.
  *
  */
-int mbedtls_rsa_get_hash_id(const mbedtls_rsa_context *ctx);
+int mbedtls_rsa_get_md_alg(const mbedtls_rsa_context *ctx);
 
 /**
  * \brief          This function imports a set of core parameters into an
diff --git a/library/rsa.c b/library/rsa.c
index 54585f2..4c678dd 100644
--- a/library/rsa.c
+++ b/library/rsa.c
@@ -510,7 +510,7 @@
 /*
  * Get hash identifier of mbedtls_md_type_t type
  */
-int mbedtls_rsa_get_hash_id(const mbedtls_rsa_context *ctx)
+int mbedtls_rsa_get_md_alg(const mbedtls_rsa_context *ctx)
 {
     return ctx->hash_id;
 }
diff --git a/tests/suites/test_suite_rsa.function b/tests/suites/test_suite_rsa.function
index 24bba9f..73eb5b2 100644
--- a/tests/suites/test_suite_rsa.function
+++ b/tests/suites/test_suite_rsa.function
@@ -22,7 +22,7 @@
     mbedtls_rsa_init(&ctx);
 
     TEST_EQUAL(mbedtls_rsa_get_padding_mode(&ctx), MBEDTLS_RSA_PKCS_V15);
-    TEST_EQUAL(mbedtls_rsa_get_hash_id(&ctx), MBEDTLS_MD_NONE);
+    TEST_EQUAL(mbedtls_rsa_get_md_alg(&ctx), MBEDTLS_MD_NONE);
 
     TEST_EQUAL(mbedtls_rsa_set_padding(&ctx,
                                        invalid_padding,