1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-07-27 13:36:01 +08:00

test_suite_pk: fix guards for pk_psa_setup()

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti 2024-04-17 05:25:40 +02:00
parent e98c37877b
commit 690ab4548c

View File

@ -295,7 +295,7 @@ exit:
return ret; return ret;
} }
#if defined(MBEDTLS_PSA_CRYPTO_CLIENT) #if defined(MBEDTLS_PSA_CRYPTO_C)
/** Create a PSA key of the desired type and properties. /** Create a PSA key of the desired type and properties.
* *
* - For RSA and EC keys predefined key data is used (as in the pk_setup() above). * - For RSA and EC keys predefined key data is used (as in the pk_setup() above).
@ -354,9 +354,7 @@ psa_status_t pk_psa_setup(psa_key_type_t type, size_t bits,
exit: exit:
return status; return status;
} }
#endif /* MBEDTLS_PSA_CRYPTO_CLIENT */
#if defined(MBEDTLS_PSA_CRYPTO_C)
static psa_key_usage_t pk_get_psa_attributes_implied_usage( static psa_key_usage_t pk_get_psa_attributes_implied_usage(
psa_key_usage_t expected_usage) psa_key_usage_t expected_usage)
{ {