Guard pk_sign_ext with PSA_CRYPTO_C
@@ -535,6 +535,7 @@ int mbedtls_pk_sign( mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg,
unsigned char *sig, size_t sig_size, size_t *sig_len,
int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
+#if defined(MBEDTLS_PSA_CRYPTO_C)
/**
* \brief Make signature with input pk type. not the type of \p ctx .
*
@@ -574,6 +575,7 @@ int mbedtls_pk_sign_ext( mbedtls_pk_type_t type,
unsigned char *sig, size_t sig_size, size_t *sig_len,
int (*f_rng)(void *, unsigned char *, size_t),
void *p_rng );
+#endif /* MBEDTLS_PSA_CRYPTO_C */
/**
* \brief Restartable version of \c mbedtls_pk_sign()
