From e380c6969d454416ce75e394a138c3b91ae59205 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Wed, 17 May 2023 15:49:55 +0200 Subject: [PATCH] pk: fix wrong naming in guards comments Signed-off-by: Valerio Setti --- include/mbedtls/pk.h | 2 +- library/pk.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mbedtls/pk.h b/include/mbedtls/pk.h index 4a8e50c9960a..b478cccd4caf 100644 --- a/include/mbedtls/pk.h +++ b/include/mbedtls/pk.h @@ -290,7 +290,7 @@ typedef struct mbedtls_pk_context { size_t MBEDTLS_PRIVATE(pub_raw_len); /**< Valid bytes in "pub_raw" */ psa_ecc_family_t MBEDTLS_PRIVATE(ec_family); /**< EC family of pk */ size_t MBEDTLS_PRIVATE(ec_bits); /**< Curve's bits of pk */ -#endif /* MBEDTLS_PK_USE_PSA_EC_PUB_KEY */ +#endif /* MBEDTLS_PK_USE_PSA_EC_DATA */ } mbedtls_pk_context; #if defined(MBEDTLS_ECDSA_C) && defined(MBEDTLS_ECP_RESTARTABLE) diff --git a/library/pk.c b/library/pk.c index 47c19b208671..826c29a8cba1 100644 --- a/library/pk.c +++ b/library/pk.c @@ -227,7 +227,7 @@ int mbedtls_pk_update_public_key_from_keypair(mbedtls_pk_context *pk, return 0; } -#endif /* MBEDTLS_PK_USE_PSA_EC_PUB_KEY */ +#endif /* MBEDTLS_PK_USE_PSA_EC_DATA */ #if defined(MBEDTLS_PK_RSA_ALT_SUPPORT) /*