mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-10-16 21:57:23 +00:00
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:
@@ -53,10 +53,10 @@ from mbedtls_framework import build_tree
|
|||||||
|
|
||||||
# Naming patterns to check against. These are defined outside the NameCheck
|
# Naming patterns to check against. These are defined outside the NameCheck
|
||||||
# class for ease of modification.
|
# 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]$"
|
INTERNAL_MACRO_PATTERN = r"^[0-9A-Za-z_]*[0-9A-Z]$"
|
||||||
CONSTANTS_PATTERN = PUBLIC_MACRO_PATTERN
|
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
|
class Match(): # pylint: disable=too-few-public-methods
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user