fix comments and style issues
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
diff --git a/include/mbedtls/pk.h b/include/mbedtls/pk.h
index 345762c..fbc1794 100644
--- a/include/mbedtls/pk.h
+++ b/include/mbedtls/pk.h
@@ -558,9 +558,7 @@
*
* \return 0 on success, or a specific error code.
*
- * \note For RSA keys, the padding type depends on the value of the
- * \p pk_type parameter: MBEDTLS_PK_RSA for PKCS#1 v1.5, and
- * MBEDTLS_PK_RSASSA_PSS for PKCS#1 v2.1 with any salt.
+ * \note see #PSA_ALG_RSA_PSS also.
*
* \note For RSA, md_alg may be MBEDTLS_MD_NONE if hash_len != 0.
* For ECDSA, md_alg may never be MBEDTLS_MD_NONE.
diff --git a/library/pk.c b/library/pk.c
index 0dab428..ee10980 100644
--- a/library/pk.c
+++ b/library/pk.c
@@ -546,7 +546,6 @@
}
#if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT) && defined(MBEDTLS_USE_PSA_CRYPTO)
-
return( mbedtls_pk_psa_sign_ext( PSA_ALG_RSA_PSS_ANY_SALT(
mbedtls_psa_translate_md( md_alg ) ),
ctx->pk_ctx, hash, hash_len,