Skip to content

Commit f3acf7a

Browse files
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]>
1 parent b0be9ad commit f3acf7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/check_names.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353

5454
# Naming patterns to check against. These are defined outside the NameCheck
5555
# class for ease of modification.
56-
PUBLIC_MACRO_PATTERN = r"^(MBEDTLS|PSA|TF_PSA)_[0-9A-Z_]*[0-9A-Z]$"
56+
PUBLIC_MACRO_PATTERN = r"^(MBEDTLS|PSA|TF_PSA_CRYPTO)_[0-9A-Z_]*[0-9A-Z]$"
5757
INTERNAL_MACRO_PATTERN = r"^[0-9A-Za-z_]*[0-9A-Z]$"
5858
CONSTANTS_PATTERN = PUBLIC_MACRO_PATTERN
59-
IDENTIFIER_PATTERN = r"^(mbedtls|psa|tf_psa)_[0-9a-z_]*[0-9a-z]$"
59+
IDENTIFIER_PATTERN = r"^(mbedtls|psa|tf_psa_crypto)_[0-9a-z_]*[0-9a-z]$"
6060

6161
class Match(): # pylint: disable=too-few-public-methods
6262
"""

0 commit comments

Comments
 (0)