fix comments and style issues

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2022-03-16 10:06:59 +08:00
parent 718a9b4a3f
commit 704cfd2a86
2 changed files with 1 additions and 4 deletions

View file

@ -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. * \return 0 on success, or a specific error code.
* *
* \note For RSA keys, the padding type depends on the value of the * \note see #PSA_ALG_RSA_PSS also.
* \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 For RSA, md_alg may be MBEDTLS_MD_NONE if hash_len != 0. * \note For RSA, md_alg may be MBEDTLS_MD_NONE if hash_len != 0.
* For ECDSA, md_alg may never be MBEDTLS_MD_NONE. * For ECDSA, md_alg may never be MBEDTLS_MD_NONE.

View file

@ -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) #if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT) && defined(MBEDTLS_USE_PSA_CRYPTO)
return( mbedtls_pk_psa_sign_ext( PSA_ALG_RSA_PSS_ANY_SALT( return( mbedtls_pk_psa_sign_ext( PSA_ALG_RSA_PSS_ANY_SALT(
mbedtls_psa_translate_md( md_alg ) ), mbedtls_psa_translate_md( md_alg ) ),
ctx->pk_ctx, hash, hash_len, ctx->pk_ctx, hash, hash_len,