From 704cfd2a86ec39febd9fe6e0fbb598d56cf38051 Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Wed, 16 Mar 2022 10:06:59 +0800 Subject: [PATCH] fix comments and style issues Signed-off-by: Jerry Yu --- include/mbedtls/pk.h | 4 +--- library/pk.c | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/mbedtls/pk.h b/include/mbedtls/pk.h index 345762c42..fbc179463 100644 --- a/include/mbedtls/pk.h +++ b/include/mbedtls/pk.h @@ -558,9 +558,7 @@ int mbedtls_pk_sign( mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, * * \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 0dab42899..ee1098058 100644 --- a/library/pk.c +++ b/library/pk.c @@ -546,7 +546,6 @@ int mbedtls_pk_sign_ext( mbedtls_pk_type_t pk_type, } #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,