-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Test TLS 1.2 builds with each encryption type #6374
Changes from 1 commit
11c362a
89ad623
a82290b
6f29a6c
4c49927
d582a01
e31ba83
9550c05
b0de1c0
0cc3466
68db0d2
a891a09
8d4b241
ce5b68c
48a6a66
460192e
6a5cc74
0957e7b
e32cd44
52a428b
68a01a6
1f02c6c
d61a4d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1274,6 +1274,38 @@ component_test_crypto_full_no_cipher () { | |
make test | ||
} | ||
|
||
component_test_crypto_default_stream_cipher_only () { | ||
msg "build: default with only stream cipher" | ||
|
||
# Disable all ciphers | ||
# AEAD (controlled by the presence of one of GCM_C, CCM_C, CHACHAPOLY_C | ||
scripts/config.py unset MBEDTLS_GCM_C | ||
scripts/config.py unset MBEDTLS_CCM_C | ||
scripts/config.py unset MBEDTLS_CHACHAPOLY_C | ||
# CBC-legacy (controlled by MBEDTLS_CIPHER_MODE_CBC plus at least one block cipher (AES, ARIA, Camellia, DES)) | ||
scripts/config.py unset MBEDTLS_CIPHER_MODE_CBC | ||
scripts/config.py unset MBEDTLS_AES_C | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think you need to disable all those ciphers, just disabling |
||
scripts/config.py unset MBEDTLS_CAMELLIA_C | ||
scripts/config.py unset MBEDTLS_ARIA_C | ||
scripts/config.py unset MBEDTLS_DES_C | ||
# CBC-EtM (controlled by the same as CBC-legacy plus MBEDTLS_SSL_ENCRYPT_THEN_MAC) | ||
scripts/config.py unset MBEDTLS_SSL_ENCRYPT_THEN_MAC | ||
# stream (currently that's just the NULL pseudo-cipher (controlled by MBEDTLS_CIPHER_NULL_CIPHER) | ||
scripts/config.py unset MBEDTLS_CIPHER_NULL_CIPHER | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I find it potentially confusing that unset this here and set is a few lines below. |
||
# Indirect dependencies | ||
scripts/config.py unset MBEDTLS_CTR_DRBG_C | ||
scripts/config.py unset MBEDTLS_CMAC_C | ||
scripts/config.py unset MBEDTLS_NIST_KW_C | ||
|
||
# Enable stream(null) cipher only | ||
scripts/config.py set MBEDTLS_CIPHER_NULL_CIPHER | ||
make | ||
|
||
msg "test: default with only stream cipher" | ||
make test | ||
mpg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
|
||
|
||
component_test_psa_external_rng_use_psa_crypto () { | ||
msg "build: full + PSA_CRYPTO_EXTERNAL_RNG + USE_PSA_CRYPTO minus CTR_DRBG" | ||
scripts/config.py full | ||
|
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.
Naming: I'm not sure "crypto" is meaningful here. Since this test (and the other two that are coming) are motivated by the risk for issues with TLS 1.2 when only one of its encryption modes is active, I think
tls1_2
would make more sense.