mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-04 13:13:31 +00:00
Centralize it in a new file psa/config_adjust_keypair_types.h. I think this file indeed belongs in include/psa (as opposed to include/mbedtls) because it only touches PSA_WANT symbols (no MBEDTLS_PSA symbols), and implements things that are described in psa-conditional-inclusion.md. The code is not new, just moved from config_psa.h and config_adjust_legacy_from_psa.h where is was intermingled with handling of ACCEL/BUILTIN symbols. (git's --color-moved option will hardly help in checking that assertion, due to the way things were intermixed.) Note: the parts about BUILTIN in config_psa.h were not moved, just removed for now. They belong to include/mbedtls/config_adjust_legacy_from_psa.h and will be re-added there in a future commit which will completely re-organize the handling or ACCEL/BUILTIN for ECC. See comments inside the commit about placement of this file relative to others. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>