Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move some test helpers to framework repository #6

Open
wants to merge 793 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
793 commits
Select commit Hold shift + click to select a range
4e10c08
Rename parse_binary_string function
silabs-Kusumit Sep 5, 2023
7c3faec
Set input cost as 1 for psa_key_exercise test
silabs-Kusumit Sep 5, 2023
119870c
Refactoring: create mbedtls_test_ssl_prepare_record_mac()
gilles-peskine-arm Sep 18, 2023
a688f80
Introduce TEST_CALLOC_NONNULL
daverodgman Sep 19, 2023
2a62008
Make TEST_CALLOC_NONNULL more robust
daverodgman Sep 19, 2023
f1fb3e7
Merge pull request #1073 from Mbed-TLS/better-ct-memcmp
gilles-peskine-arm Sep 21, 2023
e63f93d
Merge pull request #1071 from gilles-peskine-arm/ssl_decrypt_stream_s…
gilles-peskine-arm Sep 22, 2023
2dc11a7
Merge pull request #8092 from silabs-Kusumit/PBKDF2_output_key
gilles-peskine-arm Sep 22, 2023
9b27b4a
Add SHA-3 support to libtestdriver1
mpg Sep 22, 2023
26d95e9
Merge pull request #8240 from mpg/doc-driver-only-hashes
daverodgman Sep 24, 2023
a1ac4c9
Merge remote-tracking branch 'upstream-public/development' into devel…
gilles-peskine-arm Sep 25, 2023
54b0aa6
Merge pull request #1090 from Mbed-TLS/mbedtls-3.5.0rc0-pr
minosgalanakis Oct 4, 2023
1bbaeba
md: remove unnecessary inclusions of mbedtls/md.h
valeriosetti Oct 6, 2023
6e31f4c
Add unit test for max_early_data_size of ticket
yuhaoth Dec 12, 2022
9e5eb13
CMAC: accelerate CMAC in accel_cipher
Oct 11, 2023
87cb0e6
libtestdriver1: fix acceleration for ALG_STREAM_CIPHER/ALG_ECB_NO_PAD…
valeriosetti Oct 17, 2023
610edbe
test_driver_extension: manage curves' acceleration the same as other …
valeriosetti Oct 30, 2023
52a7566
ssl_helpers: allow mbedtls_test_ssl_build_transforms to work without …
valeriosetti Oct 27, 2023
43a0e6d
ssl_helpers: remove CIPHER_C guards in mbedtls_test_ssl_build_transfo…
valeriosetti Oct 30, 2023
b8c8f52
update headers
daverodgman Nov 2, 2023
fc46638
Header updates
daverodgman Nov 3, 2023
ff6ba5e
Merge pull request #8443 from valeriosetti/issue8274
gilles-peskine-arm Nov 4, 2023
749bbe9
Merge pull request #8434 from valeriosetti/issue8407
gilles-peskine-arm Nov 4, 2023
9f63e13
ssl_helper: fix missin initialization of cli_log_obj
lpy4105 Nov 8, 2023
e72725c
ssl: use MBEDTLS_SSL_HAVE_* in tests
lpy4105 Nov 8, 2023
081c32f
Revert back to v3.5.0
daverodgman Nov 8, 2023
0c90b9c
Merge remote-tracking branch 'origin/development' into mbedtls-3.5.1-pr
daverodgman Nov 8, 2023
8dcc32b
test_driver_extension: use same def/undef pattern for all accelerated…
valeriosetti Nov 8, 2023
467099d
Merge pull request #8495 from lpy4105/issue/6322/driver-only-cipher_a…
mpg Nov 9, 2023
7c1ffc4
Merge pull request #8499 from valeriosetti/issue8488
mpg Nov 15, 2023
53d6e56
test_driver_extension: fix acceleration support for CCM and CCM*
valeriosetti Nov 8, 2023
9be008a
psa_exercise_key: replace legacy symbols with PSA_WANT ones
valeriosetti Nov 8, 2023
b9b37e1
psa_exercise_key: add missing #else for KNOWN_SUPPORTED_BLOCK_CIPHER
valeriosetti Nov 9, 2023
dce64df
Move handling of mutex->is_valid into threading_helpers.c
paul-elliott-arm Nov 10, 2023
6d48487
Make threading helpers tests thread safe
paul-elliott-arm Nov 12, 2023
68ed0de
Rename mutex->is_valid to mutex->state
paul-elliott-arm Nov 15, 2023
855881e
Merge pull request #7071 from yuhaoth/pr/tls13-ticket-add-max_early_d…
ronald-cron-arm Nov 20, 2023
b37570d
Merge pull request #8489 from valeriosetti/issue8482
gilles-peskine-arm Nov 20, 2023
611665f
update tests
yuhaoth Oct 31, 2023
12bd28b
rename `ticket_creation` to `ticket_creation_time`
yuhaoth Nov 10, 2023
1d12938
rename ticket received
yuhaoth Nov 10, 2023
2c75308
fix build failure
yuhaoth Nov 14, 2023
93afaeb
Merge pull request #6788 from yuhaoth/pr/fix-gnutls_anti_replay_fail
ronald-cron-arm Nov 21, 2023
22b717a
Merge pull request #1122 from gilles-peskine-arm/development-restrict…
gilles-peskine-arm Nov 21, 2023
638ce23
Detect enabled GCC/Clang sanitizers
gilles-peskine-arm Nov 22, 2023
5f7f6e3
Ensure mutex test mutex gets free'd
paul-elliott-arm Nov 23, 2023
3805f11
Add better documentation for mbedtls_test_mutex_mutex
paul-elliott-arm Nov 24, 2023
abc1978
Merge pull request #8286 from gilles-peskine-arm/check_mbedtls_calloc…
daverodgman Nov 28, 2023
85efe19
Merge pull request #8534 from paul-elliott-arm/fix_mutex_abstraction
yanesca Nov 29, 2023
0269b02
Merge remote-tracking branch 'development' into development-restricted
gilles-peskine-arm Nov 29, 2023
582c233
New files for memory-related test functions
gilles-peskine-arm Nov 2, 2023
24138fd
Add memory poisoning framework
gilles-peskine-arm Nov 2, 2023
34ea221
Fix memory poisoning with Asan on arbitrary byte boundaries
gilles-peskine-arm Nov 2, 2023
5dbd9d1
Use the existing definition of MBEDTLS_TEST_HAVE_ASAN
gilles-peskine-arm Nov 22, 2023
660dee3
Avoid unused variable warnings in some plausible usage
gilles-peskine-arm Nov 22, 2023
a3df575
ssl_helpers: make rng_get available for other test cases
Dec 1, 2023
ea3933d
ssl_helpers: remove guard for rng_get()
Dec 1, 2023
84b575e
psa: free RNG implementation before checking for remaining open key s…
valeriosetti Nov 13, 2023
1b8322f
test_suite_[ctr_drbg/random]: initialize/close PSA in tests
valeriosetti Nov 13, 2023
aab9a62
test_suite_psa_crypto_driver_wrappers: improving driver access counters
valeriosetti Nov 13, 2023
6df615f
test_suite_psa_crypto_driver_wrappers: add counter for cipher_update()
valeriosetti Nov 23, 2023
9097552
test_suite_psa_crypto_slot_management: modify check on open key slots
valeriosetti Nov 24, 2023
7675a4e
test_suite_psa_crypto_driver_wrappers: add counter for failing psa_ci…
valeriosetti Nov 24, 2023
a76301a
test_driver_cipher: add forced return status for encrypt and set_iv
valeriosetti Nov 27, 2023
0472af3
test_driver_key_management: rename counter for export_public_key() hits
valeriosetti Dec 4, 2023
693fa6d
Correctly use asymmetric encrypt/decrypt driver
lpy4105 Dec 6, 2023
4979327
Merge pull request #1121 from gilles-peskine-arm/psa-buffers-test-poison
davidhorstmann-arm Dec 11, 2023
ce64ce8
Create memory poisoning wrapper for cipher encrypt
davidhorstmann-arm Nov 27, 2023
015f979
Change to use test-hook-based approach
davidhorstmann-arm Nov 28, 2023
7126ccb
Add missing license header
davidhorstmann-arm Dec 7, 2023
3a3a7ca
Add comment explaining the purpose of header
davidhorstmann-arm Dec 8, 2023
0080cb5
Merge pull request #8616 from lpy4105/issue/8553/test-driver-only-rsa
mpg Dec 14, 2023
978c08e
Move test hook setup functions into a C file
davidhorstmann-arm Dec 13, 2023
155d534
Move test hook setup and teardown to helpers.c
davidhorstmann-arm Dec 14, 2023
5e32dba
Move wrapper include to psa_crypto_helpers.h
davidhorstmann-arm Dec 14, 2023
713031c
tests: add PSA_INIT/PSA_DONE to CCM and GCM test suites
valeriosetti Dec 12, 2023
24157cf
Add missing newline at end of file
davidhorstmann-arm Dec 14, 2023
a41e3ce
Improve guards around memory poisoning setup
davidhorstmann-arm Dec 15, 2023
c62ece8
Add extra MBEDTLS_PSA_CRYPTO_C guard for header
davidhorstmann-arm Dec 18, 2023
2602db9
Add missing newline at end of file
davidhorstmann-arm Dec 18, 2023
e73af47
Only poison memory when buffer copying is enabled
davidhorstmann-arm Dec 20, 2023
62946ba
Merge pull request #1127 from davidhorstmann-arm/prototype-single-fn-…
davidhorstmann-arm Dec 20, 2023
1f3d336
Refactor record size limit extension handling
waleed-elmelegy-arm Dec 20, 2023
4b055ad
library/tests: replace md_psa.h with psa_util.h as include file for M…
valeriosetti Jan 2, 2024
c074b60
Add accessor helpers for mbedtls_test_info
paul-elliott-arm Oct 27, 2023
cac2eb8
Use mbedtls_test_info accessors internally as well
paul-elliott-arm Oct 31, 2023
8287a7f
Migrate to threading_helpers.h
paul-elliott-arm Dec 8, 2023
a37895b
Add test thread create/join abstraction
paul-elliott-arm Dec 8, 2023
7e05cf8
Merge pull request #7455 from KloolK/record-size-limit/comply-with-limit
tom-cosgrove-arm Jan 9, 2024
43b1bb6
Move bignum flag for negative zero into test_info
paul-elliott-arm Nov 3, 2023
71c38c2
Protect test info access with mutex
paul-elliott-arm Nov 27, 2023
6d9118b
Add ability to exclude mutex from tests
paul-elliott-arm Jan 9, 2024
c324dba
Add hkdf_extract, hkdf_expand and ecjpake_to_pms cases
silabs-Kusumit Dec 1, 2023
c1b3b45
Use thread-local flag to enable memory poisoning
davidhorstmann-arm Jan 10, 2024
6ab03eb
Add endpoint in TLS 1.2 session serialization data
ronald-cron-arm Nov 23, 2023
f5c119d
Add ticket creation time to TLS 1.2 session serialization
ronald-cron-arm Nov 22, 2023
93a5db5
test_driver_key_management: make opaque [un]wrapping functions public
valeriosetti Jan 15, 2024
aae7db2
test_driver_asymmetric_encryption: implement opaque [en/de]cryption f…
valeriosetti Jan 15, 2024
8aa0e56
Commit generated PSA wrappers
gilles-peskine-arm Jan 4, 2024
e106e87
Enable generated PSA wrappers
gilles-peskine-arm Jan 4, 2024
1539fb2
Update generated PSA wrappers
gilles-peskine-arm Jan 4, 2024
f438c61
Remove the manually written poisoning wrapper
gilles-peskine-arm Jan 4, 2024
0da9436
PSA wrappers: don't poison buffers when buffer copying is disabled
gilles-peskine-arm Jan 4, 2024
1636b34
Disable PSA wrappers psa_collect_statuses builds
gilles-peskine-arm Jan 4, 2024
a984c04
Change memory poisoning flag to a count
davidhorstmann-arm Jan 17, 2024
2376257
crypto_config_test_driver_extension: support accelaration of DH groups
valeriosetti Jan 17, 2024
0c7b149
Add underflow check to UNPOISON counter decrement
davidhorstmann-arm Jan 17, 2024
6157ba5
test_driver_key_management: keep mbedtls_test_opaque_wrap_key() private
valeriosetti Jan 18, 2024
ddbeb9e
Merge pull request #8666 from valeriosetti/issue8340
gilles-peskine-arm Jan 18, 2024
78bcb65
Fix documentation typos.
paul-elliott-arm Jan 19, 2024
17fd81c
Make test data static now it has accessors
paul-elliott-arm Jan 19, 2024
e2ce364
Access the test data mutex via accessor
paul-elliott-arm Jan 19, 2024
138bd9b
ssl_helpers.c: Add ticket write/parse test functions
ronald-cron-arm Jan 15, 2024
cb40166
tests: ssl: Move setting of debug callback
ronald-cron-arm Jan 16, 2024
03ce6aa
Merge pull request #8700 from valeriosetti/issue8461
mpg Jan 22, 2024
f2df4b7
Merge pull request #1141 from davidhorstmann-arm/memory-poisoning-run…
davidhorstmann-arm Jan 24, 2024
1ec0fde
Generate poisoning in PAKE test wrappers
davidhorstmann-arm Jan 23, 2024
6be3981
tests: fix `calloc()` argument list (`gcc-14` fix)
trofi Jan 25, 2024
72c8ee1
Merge remote-tracking branch 'restricted/development-restricted' into…
daverodgman Jan 26, 2024
0c8b658
Generate test wrappers
tom-daubney-arm Jan 30, 2024
034d872
Fix race condition with test comparison functions
paul-elliott-arm Jan 30, 2024
86832d5
Explain purpose of test specific write/parse ticket functions
ronald-cron-arm Jan 31, 2024
5f18b3f
Disable poisoning with PSA_CRYPTO_DRIVER_TEST
davidhorstmann-arm Jan 31, 2024
9d2397e
Fix code style issues
paul-elliott-arm Jan 31, 2024
b77ec28
Refactor to help future other implementations
paul-elliott-arm Feb 1, 2024
2dff047
Fix style issues
paul-elliott-arm Feb 1, 2024
db3e72b
Merge pull request #8711 from ronald-cron-arm/tls13-ticket-and-early-…
ronald-cron-arm Feb 1, 2024
04f41d5
Fix accidental copy paste mistake
paul-elliott-arm Feb 1, 2024
5fbe21e
Merge pull request #1151 from tom-daubney-arm/asymmetric_sign_buffer_…
davidhorstmann-arm Feb 2, 2024
039ee99
Generate test wrappers for key management
Ryan-Everett-arm Jan 25, 2024
d6a9179
Re-add cipher_encrypt to test wrapper script
Ryan-Everett-arm Jan 25, 2024
075b111
Remove unnecessary dependencies from psa_crypto_helpers.h
Ryan-Everett-arm Feb 1, 2024
000c171
Merge pull request #1137 from Ryan-Everett-arm/key-management-buffer-…
davidhorstmann-arm Feb 2, 2024
be8e24f
Restore mutex lock for mbedtls_test_set_step()
paul-elliott-arm Feb 2, 2024
0758142
Revert accidental formatting change
paul-elliott-arm Feb 2, 2024
d5ea096
Merge branch 'development-restricted' into update-development-r
daverodgman Feb 2, 2024
a34b9de
Merge pull request #1165 from daverodgman/update-development-r
daverodgman Feb 2, 2024
ab6b278
Fix missed case for removing accessor
paul-elliott-arm Feb 6, 2024
da3051d
Generate poisoning wrappers for AEAD
davidhorstmann-arm Jan 22, 2024
e458fda
Add comment to set/increment step functions
paul-elliott-arm Feb 6, 2024
444f393
tests: ssl: Move group list to options
ronald-cron-arm Jan 26, 2024
17c3145
tests: ssl: First reset to all zeroes options in init
ronald-cron-arm Jan 26, 2024
4ad1907
tests: ssl: Add early data handshake option
ronald-cron-arm Jan 26, 2024
5d95b0b
tests: ssl: Add helper function to get a TLS 1.3 ticket
ronald-cron-arm Jan 26, 2024
861d497
Merge pull request #8198 from silabs-Kusumit/kdf_incorrect_initial_ca…
gilles-peskine-arm Feb 6, 2024
44b8e62
Stop platform test failures with GCC and TSAN
paul-elliott-arm Feb 6, 2024
6f97a38
Merge pull request #8717 from valeriosetti/issue8030
mpg Feb 7, 2024
c1c58da
Merge pull request #8789 from paul-elliott-arm/fix_tsan_gcc
paul-elliott-arm Feb 7, 2024
06275bb
Generate test wrappers for key derivation
Ryan-Everett-arm Jan 25, 2024
c4493c9
Merge pull request #8636 from paul-elliott-arm/new_test_thread_interface
yanesca Feb 8, 2024
8eaecd1
tests: ssl: Improve test parameter sanity check
ronald-cron-arm Feb 9, 2024
7e91651
Merge remote-tracking branch 'upstream/development' into make_tests_t…
paul-elliott-arm Feb 9, 2024
63022a8
Fix typo / improve documentation for test step fns
paul-elliott-arm Feb 9, 2024
1b84170
Merge pull request #8689 from paul-elliott-arm/make_tests_thread_safe
paul-elliott-arm Feb 9, 2024
fec3ee1
Generate test wrappers for hash functions
tom-daubney-arm Jan 25, 2024
72a123c
Generate test wrappers for mac functions
tom-daubney-arm Jan 30, 2024
3b14880
Generate test wrappers
tom-daubney-arm Jan 30, 2024
8eee3a3
Generate all test wrappers
tom-daubney-arm Jan 31, 2024
bc7d47b
exercise_key: allow SIGN_MESSAGE/VERIFY_MESSAGE with PSA_ALG_ANY_HASH
gilles-peskine-arm Feb 9, 2024
d011028
exercise_key: fix asymmetric encrypt/decrypt with >2028-bit RSA
gilles-peskine-arm Feb 9, 2024
ec47c96
Don't exercise if the algorithm is not supported
gilles-peskine-arm Feb 12, 2024
6a330ad
Prioritize SHA2 over MD5 for KNOWN_SUPPORTED_HASH_ALG
gilles-peskine-arm Feb 12, 2024
b847664
Fix deadlock with test failures
paul-elliott-arm Feb 13, 2024
92203e7
Merge pull request #1142 from tom-daubney-arm/hash_buffer_protection
davidhorstmann-arm Feb 13, 2024
4af9f79
Merge pull request #8755 from ronald-cron-arm/tls13-client-early-data…
mpg Feb 13, 2024
337dcd2
Make internal test info accessor functions static.
paul-elliott-arm Feb 13, 2024
17b6152
Merge pull request #1156 from Ryan-Everett-arm/key-derivation-buffer-…
davidhorstmann-arm Feb 15, 2024
f0817be
Fix encrypt/decrypt confusion
gilles-peskine-arm Feb 15, 2024
1f37bfb
Rename internal test info data accessors
paul-elliott-arm Feb 15, 2024
963c26e
Fix missing mutex lock for mutex usage error
paul-elliott-arm Feb 13, 2024
fc47457
Lock test mutex before doing mutex usage check
paul-elliott-arm Feb 13, 2024
cf16573
Generate test wrappers
tom-daubney-arm Feb 15, 2024
6cc6a90
tls13: Fix/Improve comments
ronald-cron-arm Feb 14, 2024
826741d
New test helper: mbedtls_test_key_consistency_psa_pk
gilles-peskine-arm Feb 15, 2024
22b3f3b
Merge pull request #1132 from davidhorstmann-arm/copying-aead
davidhorstmann-arm Feb 20, 2024
6117f80
Merge pull request #8574 from ronald-cron-arm/ssl-tickets
mpg Feb 21, 2024
bd416a0
Merge remote-tracking branch 'development' into pk_import_into_psa-im…
gilles-peskine-arm Feb 21, 2024
a2876c6
Merge pull request #8807 from gilles-peskine-arm/pk_import_into_psa-i…
gilles-peskine-arm Feb 21, 2024
8dd174a
Merge branch 'development-restricted' into mac_buffer_protection
tom-daubney-arm Feb 22, 2024
407d4b0
Improve documentation / comments
paul-elliott-arm Feb 24, 2024
684e26b
Ignore domain parameters in RSA key generation
gilles-peskine-arm Feb 15, 2024
af3ff20
Merge pull request #8838 from paul-elliott-arm/improve_test_data_acce…
tom-cosgrove-arm Feb 26, 2024
ecfc973
Generate test wrappers for psa_generate_random()
davidhorstmann-arm Feb 6, 2024
5684c51
Merge pull request #1149 from tom-daubney-arm/mac_buffer_protection
davidhorstmann-arm Feb 26, 2024
000fe48
test: remove usage of mbedtls_pk_wrap_as_opaque() from tests
valeriosetti Feb 27, 2024
0129b7e
Merge pull request #8840 from gilles-peskine-arm/domain_parameters-re…
tom-cosgrove-arm Feb 27, 2024
fe45695
ssl_helpers: minor fix in mbedtls_test_ssl_endpoint_certificate_init()
valeriosetti Feb 27, 2024
3318f39
Don't access psa_key_attributes_t.core
gilles-peskine-arm Feb 28, 2024
2540a4e
Add test wrapper functions for cipher buffer protection
gabor-mezei-arm Jan 24, 2024
14fdcb7
Update test wrapper functions for ciper buffer protection
gabor-mezei-arm Feb 1, 2024
f894dfd
Merge branch 'development-restricted' into asymmetric_encrypt_buffer_…
tom-daubney-arm Feb 28, 2024
9f1962b
Merge pull request #1153 from tom-daubney-arm/asymmetric_encrypt_buff…
davidhorstmann-arm Feb 29, 2024
98a2344
Merge branch 'development-restricted' into generate-random-buffer-pro…
davidhorstmann-arm Feb 29, 2024
937f449
Merge pull request #8760 from ronald-cron-arm/tls13-write-early-data
ronald-cron-arm Feb 29, 2024
a2c7de5
psa_util: change guard for mbedtls_psa_get_random() to CRYPTO_CLIENT
valeriosetti Feb 29, 2024
63281a4
tests: ssl: Add max_early_data_size option
ronald-cron-arm Feb 23, 2024
523b1d2
tests: ssl: Add max_early_data_size option
ronald-cron-arm Feb 23, 2024
b18e2e4
Merge pull request #8864 from valeriosetti/issue8848
mpg Mar 1, 2024
dbac76f
tests: ssl_helpers: Rename rng_get to mbedtls_test_random
ronald-cron-arm Feb 5, 2024
64609f6
psa_crypto_stubs/changelog: fix typos
valeriosetti Mar 1, 2024
2b76c6c
ssl_helpers: Restore rng_seed incrementation
ronald-cron-arm Mar 4, 2024
b471e41
Merge pull request #1172 from davidhorstmann-arm/generate-random-buff…
davidhorstmann-arm Mar 4, 2024
dff4a8e
Merge branch 'development-restricted' into buffer_protection_for_cipher
gabor-mezei-arm Mar 4, 2024
c98b918
Merge pull request #8867 from gilles-peskine-arm/psa_key_attributes-r…
gilles-peskine-arm Mar 5, 2024
70644d1
Ensure drivers have threading enabled if required
paul-elliott-arm Mar 5, 2024
6404576
Merge pull request #1167 from gabor-mezei-arm/buffer_protection_for_c…
davidhorstmann-arm Mar 5, 2024
1927e0f
Merge branch 'development-restricted' into copying-pake
davidhorstmann-arm Mar 6, 2024
a94af45
Merge branch 'development-restricted' into key_agreement_buffer_prote…
tom-daubney-arm Mar 6, 2024
1211f7c
Merge pull request #8587 from yanrayw/issue/4911/ssl_setup-check-RNG-…
ronald-cron-arm Mar 8, 2024
bf6dfcb
Merge pull request #1160 from davidhorstmann-arm/copying-pake
davidhorstmann-arm Mar 8, 2024
b99748a
Merge pull request #8854 from ronald-cron-arm/tls13-srv-max-early-dat…
ronald-cron-arm Mar 9, 2024
a415422
Merge remote-tracking branch 'mbedtls/development' into tls13-cli-max…
ronald-cron-arm Mar 10, 2024
873539c
Merge pull request #8862 from valeriosetti/issue8825
mpg Mar 10, 2024
8661346
Merge pull request #1181 from tom-daubney-arm/key_agreement_buffer_pr…
davidhorstmann-arm Mar 11, 2024
40af74b
Generate memory poisoning in wrappers
davidhorstmann-arm Mar 11, 2024
f8d87b5
Merge pull request #8857 from ronald-cron-arm/tls13-cli-max-early-dat…
ronald-cron-arm Mar 12, 2024
36f35d0
Merge branch 'development' into buffer-sharing-merge
davidhorstmann-arm Mar 12, 2024
002f809
Add key_destroyable parameter to mbedtls_test_psa_exercise_key
Ryan-Everett-arm Mar 12, 2024
233382e
Add key_destroyable parameter to check_key_attributes_sanity
Ryan-Everett-arm Mar 12, 2024
c13895a
Add key_destroyable parameter to exercise_mac_key
Ryan-Everett-arm Mar 12, 2024
6049968
Add key_destroyable parameter to psa_exercise_cipher_key
Ryan-Everett-arm Mar 12, 2024
e0cfa29
Add key_destroyable parameter to exercise_aead_key
Ryan-Everett-arm Mar 12, 2024
33fba7c
Add key_destroyable parameter to exercise_signature_key
Ryan-Everett-arm Mar 12, 2024
0032477
Add key_destroyable parameter to exercise_asymmetric_encryption_key
Ryan-Everett-arm Mar 12, 2024
051d298
Add key_destroyable parameter to key derivation smoke tests
Ryan-Everett-arm Mar 12, 2024
f7ba175
Add key_destroyable parameter to raw key agreement smoke tests
Ryan-Everett-arm Mar 12, 2024
a0010d1
Regenerate PSA wrappers for new PSA functions
davidhorstmann-arm Mar 12, 2024
1290451
psa_crypto_stubs: extend stub functions for the CRYPTO_CLIENT tests
valeriosetti Mar 12, 2024
f89b216
Add key_destroyable parameter to non-raw key agreement smoke tests
Ryan-Everett-arm Mar 12, 2024
3823662
Add key_destroyable parameter to key export smoke tests
Ryan-Everett-arm Mar 12, 2024
bfdaaf7
Add ALPN information in session tickets
waleed-elmelegy-arm Feb 23, 2024
f4bd241
Add mbedtls_ssl_session_set_alpn() function
waleed-elmelegy-arm Mar 6, 2024
e98de40
Add code improvments and refactoring in dealing with ALPN
waleed-elmelegy-arm Mar 12, 2024
7cd6992
Invert and rename config option
davidhorstmann-arm Mar 13, 2024
34beef6
Update wrapper generation script and regenerate
davidhorstmann-arm Mar 13, 2024
0369e2e
Merge pull request #1199 from davidhorstmann-arm/invert-buffer-protec…
davidhorstmann-arm Mar 14, 2024
8302c74
Add missing PSA_ASSERT in mbedtls_test_psa_raw_key_agreement_with_self
Ryan-Everett-arm Mar 14, 2024
e519cc6
Document unsupported concurrency scenario in psa_exercise_key
Ryan-Everett-arm Mar 14, 2024
0a58628
Merge pull request #8858 from waleed-elmelegy-arm/add_alpn_to_session
ronald-cron-arm Mar 15, 2024
97062dc
Merge pull request #8924 from Ryan-Everett-arm/threading-same-key-tests
paul-elliott-arm Mar 15, 2024
84523d7
Add ALPN checking when accepting early data
waleed-elmelegy-arm Mar 14, 2024
c268bab
Merge branch 'development' into 'development-restricted'
minosgalanakis Mar 19, 2024
a8a0c7f
Merge pull request #1208 from Mbed-TLS/origin/dev/minosgalanakis/deve…
minosgalanakis Mar 20, 2024
ba6bb47
Merge pull request #1213 from Mbed-TLS/mbedtls-3.6.0rc0-pr
minosgalanakis Mar 22, 2024
edf2e9a
tests: ssl: Fix session field guards
ronald-cron-arm Mar 26, 2024
b3d9153
tests: ssl: Add hostname checks in session serialization tests
ronald-cron-arm Mar 27, 2024
3336a01
Merge pull request #6955 from inorick/nofa_no_session_tickets
mpg Apr 8, 2024
d64072d
Fix failures in psa_cryto_driver_wrappers suite
lpy4105 Dec 7, 2023
0de9ec6
Merge pull request #8997 from mpg/fix-wrong-dep-test-case
gilles-peskine-arm Apr 9, 2024
60fb60c
Merge branch 'test-code-history' into dev/davidhorstmann-arm/move-tes…
davidhorstmann-arm Apr 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions include/alt-dummy/aes_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* aes_alt.h with dummy types for MBEDTLS_AES_ALT */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alt-dummy is only ever going to apply to 3.6, not to 4.0 or tf-psa-crypto. So I think it should stay in 3.6. (I would normally treat it as framework material, I'm making an exception solely because it's only ever going to apply to a single consuming branch.)

/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef AES_ALT_H
#define AES_ALT_H

typedef struct mbedtls_aes_context {
int dummy;
}
mbedtls_aes_context;

#if defined(MBEDTLS_CIPHER_MODE_XTS)

typedef struct mbedtls_aes_xts_context {
int dummy;
} mbedtls_aes_xts_context;
#endif


#endif /* aes_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/aria_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* aria_alt.h with dummy types for MBEDTLS_ARIA_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef ARIA_ALT_H
#define ARIA_ALT_H

typedef struct mbedtls_aria_context {
int dummy;
}
mbedtls_aria_context;


#endif /* aria_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/camellia_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* camellia_alt.h with dummy types for MBEDTLS_CAMELLIA_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef CAMELLIA_ALT_H
#define CAMELLIA_ALT_H

typedef struct mbedtls_camellia_context {
int dummy;
}
mbedtls_camellia_context;


#endif /* camellia_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/ccm_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* ccm_alt.h with dummy types for MBEDTLS_CCM_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef CCM_ALT_H
#define CCM_ALT_H

typedef struct mbedtls_ccm_context {
int dummy;
}
mbedtls_ccm_context;


#endif /* ccm_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/chacha20_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* chacha20_alt.h with dummy types for MBEDTLS_CHACHA20_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef CHACHA20_ALT_H
#define CHACHA20_ALT_H

typedef struct mbedtls_chacha20_context {
int dummy;
}
mbedtls_chacha20_context;


#endif /* chacha20_alt.h */
18 changes: 18 additions & 0 deletions include/alt-dummy/chachapoly_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* chachapoly_alt.h with dummy types for MBEDTLS_CHACHAPOLY_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef CHACHAPOLY_ALT_H
#define CHACHAPOLY_ALT_H

#include "mbedtls/chacha20.h"

typedef struct mbedtls_chachapoly_context {
int dummy;
}
mbedtls_chachapoly_context;


#endif /* chachapoly_alt.h */
15 changes: 15 additions & 0 deletions include/alt-dummy/cmac_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* cmac_alt.h with dummy types for MBEDTLS_CMAC_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef CMAC_ALT_H
#define CMAC_ALT_H

struct mbedtls_cmac_context_t {
int dummy;
};


#endif /* cmac_alt.h */
22 changes: 22 additions & 0 deletions include/alt-dummy/des_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* des_alt.h with dummy types for MBEDTLS_DES_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*
*/

#ifndef DES_ALT_H
#define DES_ALT_H

typedef struct mbedtls_des_context {
int dummy;
}
mbedtls_des_context;

typedef struct mbedtls_des3_context {
int dummy;
}
mbedtls_des3_context;


#endif /* des_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/dhm_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* dhm_alt.h with dummy types for MBEDTLS_DHM_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef DHM_ALT_H
#define DHM_ALT_H

typedef struct mbedtls_dhm_context {
int dummy;
}
mbedtls_dhm_context;


#endif /* dhm_alt.h */
15 changes: 15 additions & 0 deletions include/alt-dummy/ecjpake_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* ecjpake_alt.h with dummy types for MBEDTLS_ECJPAKE_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef ECJPAKE_ALT_H
#define ECJPAKE_ALT_H

typedef struct mbedtls_ecjpake_context {
int dummy;
} mbedtls_ecjpake_context;


#endif /* ecjpake_alt.h */
22 changes: 22 additions & 0 deletions include/alt-dummy/ecp_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* ecp_alt.h with dummy types for MBEDTLS_ECP_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef ECP_ALT_H
#define ECP_ALT_H

typedef struct mbedtls_ecp_group {
const mbedtls_ecp_group_id id;
const mbedtls_mpi P;
const mbedtls_mpi A;
const mbedtls_mpi B;
const mbedtls_ecp_point G;
const mbedtls_mpi N;
const size_t pbits;
const size_t nbits;
}
mbedtls_ecp_group;

#endif /* ecp_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/gcm_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* gcm_alt.h with dummy types for MBEDTLS_GCM_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef GCM_ALT_H
#define GCM_ALT_H

typedef struct mbedtls_gcm_context {
int dummy;
}
mbedtls_gcm_context;


#endif /* gcm_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/md5_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* md5_alt.h with dummy types for MBEDTLS_MD5_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef MD5_ALT_H
#define MD5_ALT_H

typedef struct mbedtls_md5_context {
int dummy;
}
mbedtls_md5_context;


#endif /* md5_alt.h */
15 changes: 15 additions & 0 deletions include/alt-dummy/nist_kw_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* nist_kw_alt.h with dummy types for MBEDTLS_NIST_KW_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef NIST_KW_ALT_H
#define NIST_KW_ALT_H

typedef struct {
int dummy;
} mbedtls_nist_kw_context;


#endif /* nist_kw_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/platform_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* platform_alt.h with dummy types for MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef PLATFORM_ALT_H
#define PLATFORM_ALT_H

typedef struct mbedtls_platform_context {
int dummy;
}
mbedtls_platform_context;


#endif /* platform_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/poly1305_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* poly1305_alt.h with dummy types for MBEDTLS_POLY1305_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef POLY1305_ALT_H
#define POLY1305_ALT_H

typedef struct mbedtls_poly1305_context {
int dummy;
}
mbedtls_poly1305_context;


#endif /* poly1305_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/ripemd160_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* ripemd160_alt.h with dummy types for MBEDTLS_RIPEMD160_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef RIPEMD160_ALT_H
#define RIPEMD160_ALT_H

typedef struct mbedtls_ripemd160_context {
int dummy;
}
mbedtls_ripemd160_context;


#endif /* ripemd160_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/rsa_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* rsa_alt.h with dummy types for MBEDTLS_RSA_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef RSA_ALT_H
#define RSA_ALT_H

typedef struct mbedtls_rsa_context {
int dummy;
}
mbedtls_rsa_context;


#endif /* rsa_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/sha1_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* sha1_alt.h with dummy types for MBEDTLS_SHA1_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef SHA1_ALT_H
#define SHA1_ALT_H

typedef struct mbedtls_sha1_context {
int dummy;
}
mbedtls_sha1_context;


#endif /* sha1_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/sha256_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* sha256_alt.h with dummy types for MBEDTLS_SHA256_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef SHA256_ALT_H
#define SHA256_ALT_H

typedef struct mbedtls_sha256_context {
int dummy;
}
mbedtls_sha256_context;


#endif /* sha256_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/sha512_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* sha512_alt.h with dummy types for MBEDTLS_SHA512_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef SHA512_ALT_H
#define SHA512_ALT_H

typedef struct mbedtls_sha512_context {
int dummy;
}
mbedtls_sha512_context;


#endif /* sha512_alt.h */
14 changes: 14 additions & 0 deletions include/alt-dummy/threading_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* threading_alt.h with dummy types for MBEDTLS_THREADING_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef THREADING_ALT_H
#define THREADING_ALT_H

typedef struct mbedtls_threading_mutex_t {
int dummy;
} mbedtls_threading_mutex_t;

#endif /* threading_alt.h */
Loading