Rename error translation functions and move them to library/pk_wrap.*

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
Neil Armstrong 2022-03-01 15:21:02 +01:00
parent 3f9cef4547
commit 19915c2c00
6 changed files with 98 additions and 104 deletions

View file

@ -84,18 +84,6 @@
extern "C" {
#endif
#if defined(MBEDTLS_USE_PSA_CRYPTO)
int mbedtls_pk_psa_err_translate( psa_status_t status );
#if defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY)
int mbedtls_pk_ecp_psa_err_translate( psa_status_t status );
#endif
#if defined(PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY)
int mbedtls_pk_rsa_psa_err_translate( psa_status_t status );
#endif
#endif
/**
* \brief Public key types
*/