Skip to content

Commit 3911745

Browse files
committed
Add CCM
1 parent 0c7b2a5 commit 3911745

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

checks/tasks/tls/tls_constants.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040

4141

4242
# NCSC appendix C, derived from table 2, 6 and 7
43+
# Anything not in these lists, is insufficient.
4344
CIPHERS_GOOD = [
4445
"TLS_AES_256_GCM_SHA384",
4546
"TLS_CHACHA20_POLY1305_SHA256",
@@ -53,6 +54,10 @@
5354
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
5455
"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256",
5556
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
57+
# CCM is not in appendix C, but footnote 31 makes it Good (CCM_8 is insufficient)
58+
"TLS_AES_128_CCM_SHA256", # TLS 1.3 notation
59+
"TLS_ECDHE_ECDSA_WITH_AES_128_CCM",
60+
"TLS_ECDHE_ECDSA_WITH_AES_256_CCM",
5661
]
5762
CIPHERS_SUFFICIENT = [
5863
"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384",
@@ -83,6 +88,9 @@
8388
"TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384",
8489
"TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256",
8590
"TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384",
91+
# CCM is not in appendix C, but footnote 31 makes it Good (on its own)
92+
"TLS_DHE_RSA_WITH_AES_128_CCM",
93+
"TLS_DHE_RSA_WITH_AES_256_CCM",
8694
]
8795
CIPHERS_PHASE_OUT = [
8896
"TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA",
@@ -95,6 +103,9 @@
95103
"TLS_RSA_WITH_AES_128_CBC_SHA256",
96104
"TLS_RSA_WITH_AES_128_CBC_SHA",
97105
"TLS_RSA_WITH_3DES_EDE_CBC_SHA",
106+
# CCM is not in appendix C, but footnote 31 makes it Good (on its own)
107+
"TLS_RSA_WITH_AES_128_CCM",
108+
"TLS_RSA_WITH_AES_256_CCM",
98109
]
99110

100111
# NCSC table 1

0 commit comments

Comments
 (0)