Skip to content

Commit 2d1f260

Browse files
Merge pull request #9954 from gabor-mezei-arm/9753_migrate_RSA_key_exchange_tests
Migrate RSA-decryption test cases
2 parents 0ef4184 + 8829aa3 commit 2d1f260

File tree

5 files changed

+135
-267
lines changed

5 files changed

+135
-267
lines changed

tests/include/test/ssl_helpers.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@
7070
defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
7171
#define MBEDTLS_CAN_HANDLE_RSA_TEST_KEY
7272
#endif
73+
74+
#if defined(PSA_WANT_ALG_GCM) || \
75+
defined(PSA_WANT_ALG_CCM) || \
76+
defined(PSA_WANT_ALG_CHACHA20_POLY1305)
77+
#define MBEDTLS_TEST_HAS_AEAD_ALG
78+
#endif
79+
7380
enum {
7481
#define MBEDTLS_SSL_TLS1_3_LABEL(name, string) \
7582
tls13_label_ ## name,

tests/scripts/components-configuration-tls.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ component_test_small_mbedtls_ssl_dtls_max_buffering () {
242242
tests/ssl-opt.sh -f "DTLS reordering: Buffer encrypted Finished message, drop for fragmented NewSessionTicket"
243243
}
244244

245-
# Common helper for component_full_without_ecdhe_ecdsa() and
246-
# component_full_without_ecdhe_ecdsa_and_tls13() which:
245+
# Common helper for component_full_without_ecdhe_ecdsa(),
246+
# component_full_without_ecdhe_ecdsa_and_tls13() and component_full_without_tls13 which:
247247
# - starts from the "full" configuration minus the list of symbols passed in
248248
# as 1st parameter
249249
# - build
@@ -277,6 +277,10 @@ component_full_without_ecdhe_ecdsa_and_tls13 () {
277277
MBEDTLS_SSL_PROTO_TLS1_3"
278278
}
279279

280+
component_full_without_tls13 () {
281+
build_full_minus_something_and_test_tls "MBEDTLS_SSL_PROTO_TLS1_3"
282+
}
283+
280284
component_build_no_ssl_srv () {
281285
msg "build: full config except SSL server, make, gcc" # ~ 30s
282286
scripts/config.py full

0 commit comments

Comments
 (0)