guard pk_error_from_psa_ecdsa with USE_PSA_CRYPTO

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2022-03-23 12:06:31 +08:00
parent e010de4be3
commit 7533982f68
2 changed files with 7 additions and 6 deletions

View File

@ -147,9 +147,9 @@ int mbedtls_pk_error_from_psa_ecdsa( psa_status_t status )
return( mbedtls_pk_error_from_psa( status ) ); return( mbedtls_pk_error_from_psa( status ) );
} }
} }
#endif #endif /* PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY */
#endif #endif /* MBEDTLS_USE_PSA_CRYPTO */
#if defined(MBEDTLS_RSA_C) #if defined(MBEDTLS_RSA_C)
static int rsa_can_do( mbedtls_pk_type_t type ) static int rsa_can_do( mbedtls_pk_type_t type )

View File

@ -137,15 +137,16 @@ extern const mbedtls_pk_info_t mbedtls_rsa_alt_info;
#if defined(MBEDTLS_USE_PSA_CRYPTO) #if defined(MBEDTLS_USE_PSA_CRYPTO)
extern const mbedtls_pk_info_t mbedtls_pk_opaque_info; extern const mbedtls_pk_info_t mbedtls_pk_opaque_info;
#endif
#if defined(MBEDTLS_PSA_CRYPTO_C)
int mbedtls_pk_error_from_psa( psa_status_t status );
#if defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY) #if defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY)
int mbedtls_pk_error_from_psa_ecdsa( psa_status_t status ); int mbedtls_pk_error_from_psa_ecdsa( psa_status_t status );
#endif #endif
#endif
#if defined(MBEDTLS_PSA_CRYPTO_C)
int mbedtls_pk_error_from_psa( psa_status_t status );
#if defined(PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY) #if defined(PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY)
int mbedtls_pk_error_from_psa_rsa( psa_status_t status ); int mbedtls_pk_error_from_psa_rsa( psa_status_t status );
#endif #endif