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