Require _crypto part in names

Previously we allowed tf_psa_xyz / TF_PSA_XYZ. Change to allow only
tf_psa_crypto_xyz / TF_PSA_CRYPTO_XYZ.

Signed-off-by: David Horstmann <[email protected]>
This commit is contained in:
David Horstmann
2025-07-16 16:16:08 +01:00
parent b0be9adb9a
commit f3acf7a274
+2 -2
View File
@@ -53,10 +53,10 @@ from mbedtls_framework import build_tree
# Naming patterns to check against. These are defined outside the NameCheck
# class for ease of modification.
PUBLIC_MACRO_PATTERN = r"^(MBEDTLS|PSA|TF_PSA)_[0-9A-Z_]*[0-9A-Z]$"
PUBLIC_MACRO_PATTERN = r"^(MBEDTLS|PSA|TF_PSA_CRYPTO)_[0-9A-Z_]*[0-9A-Z]$"
INTERNAL_MACRO_PATTERN = r"^[0-9A-Za-z_]*[0-9A-Z]$"
CONSTANTS_PATTERN = PUBLIC_MACRO_PATTERN
IDENTIFIER_PATTERN = r"^(mbedtls|psa|tf_psa)_[0-9a-z_]*[0-9a-z]$"
IDENTIFIER_PATTERN = r"^(mbedtls|psa|tf_psa_crypto)_[0-9a-z_]*[0-9a-z]$"
class Match(): # pylint: disable=too-few-public-methods
"""