955ce58142
Remove MBEDTLS_AES_SETKEY_DEC_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-08-06 15:15:08 +01:00
742a2e3619
Remove MBEDTLS_AES_SETKEY_ENC_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-08-06 15:09:16 +01:00
2016d66741
psasim: small fixes to all.sh and test bash scripts
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2024-08-06 11:52:00 +02:00
3e81411122
Remove test_valgrind_constant_flow_psa_no_asm
...
+ typo fix
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com >
2024-08-05 15:55:44 +01:00
65d102673c
Remove the hack in library/constant_time_impl.h
...
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com >
2024-08-05 15:54:58 +01:00
61dabbd77b
Edit component_release_test_valgrind_constant_flow_no_asm
...
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com >
2024-08-05 15:53:42 +01:00
aff61f35f7
Change valgrind constant flow testing to test without asm
...
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com >
2024-08-05 15:52:38 +01:00
dcb5d83d66
Disable asm in component_test_memsan
...
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com >
2024-08-05 15:50:57 +01:00
969e9e1af0
Alter constant-flow memsan testing
...
Disable asm in memsan constant-flow testing and add a check in
check_config.h
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com >
2024-08-05 15:48:19 +01:00
59aea4e1cc
armv8 AES, SHA: simplify structure and fix copypasta
...
Reorganize the structure of the builds of aesce.c and sha256ce.c with
various configurations of AES/SHA256 acceleration. Now everything in a given
configuration is grouped together (building the object file, and checking
the presence or absence of certain instructions in the assembly).
Fix several instances of copypasta in -m options where we were sometimes not
allowing the compiler to use optional instructions even though we use them
in inline assembly, and sometimes allowing the compiler to use optional
instructions even though we then checked their absence
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-08-05 16:11:34 +02:00
8bea95de00
Use .s extension for assembly
...
Having assembly files called *.o was confusing.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-08-05 16:10:57 +02:00
20de806b8d
Use -O2 for build+test with earliest compilers
...
The compilation is slower but we get more potential warnings and running the
tests is faster.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-08-05 16:07:15 +02:00
29e86ca059
Fix spurious * in regex
...
`grep mbedtls_des*` would pick up e.g. mbedtls_derive_xxx.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-08-05 16:05:31 +02:00
d860f28b29
Don't set LD to a path with a typo for mingw
...
Our makefiles don't use $(LD) so the typo was harmless.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-08-05 16:03:20 +02:00
1084e8eb4f
key_custom: update analyze_outcomes.py
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-08-05 15:52:37 +02:00
62ee8fdcf5
Test cpp_dummy_build in pedantic mode
...
In public headers, we want to avoid things that are not standard C++,
including features that GCC and Clang support as extensions, such as
flexible array members. So compile with `-pedantic`.
Non-regression for https://github.com/Mbed-TLS/mbedtls/issues/9020 .
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-08-05 15:52:32 +02:00
aa6f6d25e2
Merge pull request #8226 from davidhorstmann-arm/all-sh-separate-components
...
Separate `all.sh` from its components
2024-08-05 08:38:23 +00:00
bf47cf7437
all.sh/components: Moved component_build_zeroize_checks -> compiler.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:38:47 +01:00
9ceb2c3e0a
all.sh/components: Moved test_malloc_0_null,test_memory_buffer_allocator -> configuration.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:38:47 +01:00
aa09e48854
all.sh/components: Moved test_sw_inet_pton -> x509.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:38:47 +01:00
c06fd308c2
all.sh/components: Moved crypto components out of tls.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:38:47 +01:00
1c26ef555c
all.sh/components: Moved component_test_no_strings -> configuration.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:38:47 +01:00
b5891d5dec
all.sh/components: Moved aesni and armce components -> platform.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:38:47 +01:00
1ef3a66540
all.sh/components: Moved test_aesni_m32_clang -> platform.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:38:47 +01:00
07404d27ef
all.sh/components: Moved build_arm_xxx from compiler -> platform.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:38:47 +01:00
f699d51a0b
all.sh/components: Moved support functions to the same group as their components.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:38:47 +01:00
4b6ee64541
all.sh/components: Moved test_depends_py_kex/psa to tls.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:38:47 +01:00
ce466f019a
all.sh: Updated the component sourcing logic.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:38:47 +01:00
609f749c56
all.sh/components: Removed duplicated/obsolete documentation/whitespace.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:38:27 +01:00
f78447f22e
test/scripts/components: Applied consistent style.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:08:58 +01:00
dc0f73a5e2
components-configuration-crypto:Added component_test_no_rsa_key_pair_generation.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:08:58 +01:00
cd5668f6a6
components-configuration-crypto: Added component_test_full_no_cipher.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:08:58 +01:00
96bf1822bf
Extract psasim components into a separate file.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:08:58 +01:00
e280ff8936
Extract sanitizer components into a separate file.
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:08:58 +01:00
8a98090edf
Extract platform components into a separate file.
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:08:58 +01:00
31b7a0c799
Extract configuration components into a separate file.
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 19:08:52 +01:00
09b179b67c
Extract configuration-x509 components into a separate file.
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 18:44:47 +01:00
7665a93799
Extract configuration-tls components into a separate file.
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 18:44:47 +01:00
f6e1adce08
Extract configuration-platform components into a separate file.
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 18:44:47 +01:00
471b34cc42
Extract configuration-crypto-components into a separate file.
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 18:44:47 +01:00
328b9e8bca
Extract compliance-components into a separate file.
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 18:44:47 +01:00
9ebb88244b
Extract compiler-components into a separate file.
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 18:44:47 +01:00
5357defbf3
Extract build-components into a separate file.
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 18:44:47 +01:00
85c78f5559
Extract basic-components into a separate file.
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 18:44:47 +01:00
db7b1bb52b
Adjusted style for psasim components
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 18:44:47 +01:00
ada21b09b5
Separate all.sh from components.
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 18:44:47 +01:00
6aab5b7109
Created placeholder component files.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-08-01 18:44:47 +01:00
7790bef825
Merge pull request #9229 from gabor-mezei-arm/9158_config.py_use_crypto_config
...
Adapt config.py to configuration file split
2024-08-01 11:48:55 +00:00
bda3e46846
Check for file at script startup
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-30 15:52:58 +01:00
b991ac2d90
Remove suprious whitespace
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-29 12:10:27 +01:00