Commit 6fc100b
committed
Reject SM cipher suites over DTLS and exercise them in record-size test
RFC 8998 registers TLS_SM4_GCM_SM3 / TLS_SM4_CCM_SM3 (and the TLS 1.2
SM4 suites) with DTLS-OK: No and defines no record-number-mask
construction for SM4. RFC 9147 Section 4.2.3 requires any non-AES /
non-ChaCha20 cipher to define its own record sequence number encryption
to be usable with DTLS. Drop SM cipher suites from the negotiable list
in InitSuites when DTLS, and reject them defensively in
VerifyServerSuite for the case where the user pins a cipher list
explicitly. Update test_record_size_matches_build_message to set up an
SM2 cert chain and SM2 key share for SM ciphers (so they actually
handshake over TLS 1.2 / TLS 1.3) and to skip the DTLS variants with
the RFC reason.1 parent b243069 commit 6fc100b
2 files changed
Lines changed: 61 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3706 | 3706 | | |
3707 | 3707 | | |
3708 | 3708 | | |
3709 | | - | |
| 3709 | + | |
| 3710 | + | |
| 3711 | + | |
| 3712 | + | |
3710 | 3713 | | |
3711 | 3714 | | |
3712 | 3715 | | |
3713 | 3716 | | |
3714 | 3717 | | |
3715 | 3718 | | |
3716 | | - | |
| 3719 | + | |
3717 | 3720 | | |
3718 | 3721 | | |
3719 | 3722 | | |
| |||
4647 | 4650 | | |
4648 | 4651 | | |
4649 | 4652 | | |
4650 | | - | |
| 4653 | + | |
| 4654 | + | |
4651 | 4655 | | |
4652 | 4656 | | |
4653 | 4657 | | |
4654 | 4658 | | |
4655 | 4659 | | |
4656 | 4660 | | |
4657 | | - | |
| 4661 | + | |
4658 | 4662 | | |
4659 | 4663 | | |
4660 | 4664 | | |
4661 | 4665 | | |
4662 | 4666 | | |
4663 | 4667 | | |
4664 | | - | |
| 4668 | + | |
4665 | 4669 | | |
4666 | 4670 | | |
4667 | 4671 | | |
| |||
37283 | 37287 | | |
37284 | 37288 | | |
37285 | 37289 | | |
| 37290 | + | |
| 37291 | + | |
| 37292 | + | |
| 37293 | + | |
| 37294 | + | |
| 37295 | + | |
| 37296 | + | |
| 37297 | + | |
| 37298 | + | |
| 37299 | + | |
| 37300 | + | |
| 37301 | + | |
| 37302 | + | |
| 37303 | + | |
| 37304 | + | |
| 37305 | + | |
37286 | 37306 | | |
37287 | 37307 | | |
37288 | 37308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
1184 | 1187 | | |
1185 | 1188 | | |
1186 | 1189 | | |
| 1190 | + | |
1187 | 1191 | | |
1188 | 1192 | | |
1189 | 1193 | | |
1190 | 1194 | | |
1191 | | - | |
1192 | | - | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
1193 | 1218 | | |
1194 | 1219 | | |
1195 | 1220 | | |
| |||
1200 | 1225 | | |
1201 | 1226 | | |
1202 | 1227 | | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
1203 | 1236 | | |
1204 | 1237 | | |
1205 | 1238 | | |
| |||
1225 | 1258 | | |
1226 | 1259 | | |
1227 | 1260 | | |
1228 | | - | |
| 1261 | + | |
1229 | 1262 | | |
1230 | 1263 | | |
1231 | 1264 | | |
| |||
0 commit comments