Merge remote-tracking branch 'main' into audit_validity_dates-move-from-mbedtls

This commit is contained in:
Gilles Peskine
2026-03-09 10:50:00 +01:00
3 changed files with 17 additions and 5 deletions
+7 -4
View File
@@ -35,8 +35,9 @@ die($usage) unless $which eq "c" || $which eq "h";
# deserialisation functions written manually (like those for the "buffer" type
# are).
#
my @types = qw(unsigned-int int size_t
my @types = qw(unsigned unsigned-int int unsigned-long long size_t
uint16_t uint32_t uint64_t
int16_t int32_t int64_t
buffer
psa_custom_key_parameters_t
psa_status_t psa_algorithm_t psa_key_derivation_step_t
@@ -56,11 +57,13 @@ my @types = qw(unsigned-int int size_t
grep(s/-/ /g, @types);
# IS-A: Some data types are typedef'd; we serialise them as the other type
# IS-A: Some data types are typedef'd or synonyms; we serialise them as
# the other type.
my %isa = (
"psa_status_t" => "int",
"psa_algorithm_t" => "unsigned int",
"psa_status_t" => "int32_t",
"psa_algorithm_t" => "uint32_t",
"psa_key_derivation_step_t" => "uint16_t",
"unsigned" => "unsigned int",
);
# Compile-time guards for some types: the type $type is defined only
+2 -1
View File
@@ -20,7 +20,8 @@ my @mbedtls_directories = qw(include/mbedtls library doxygen/input);
my @tf_psa_crypto_directories = qw(include/psa include/tf-psa-crypto
include/mbedtls
drivers/builtin/include/mbedtls
drivers/builtin/src core doxygen/input);
drivers/builtin/src core dispatch
doxygen/input extras platform utilities);
# very naive pattern to find directives:
# everything with a backslach except '\0' and backslash at EOL
+8
View File
@@ -788,7 +788,11 @@ class TFPSACryptoCodeParser(CodeParser):
H_INTERNAL = [
"core/*.h",
"dispatch/*.h",
"drivers/*/src/*.h",
"extras/*.h",
"platform/*.h",
"utilities/*.h",
]
H_TEST_DRIVERS = [
@@ -797,8 +801,12 @@ class TFPSACryptoCodeParser(CodeParser):
C_INTERNAL = [
"core/*.c",
"dispatch/*.c",
"drivers/*/library/*.c",
"drivers/*/src/*.c",
"extras/*.c",
"platform/*.c",
"utilities/*.c",
]
def comprehensive_parse(self) -> ParseResult: