(aesGCMPreferred bool)
| 82 | } |
| 83 | |
| 84 | func defaultCipherSuites(aesGCMPreferred bool) []uint16 { |
| 85 | cipherSuites := supportedCipherSuites(aesGCMPreferred) |
| 86 | return slices.DeleteFunc(cipherSuites, func(c uint16) bool { |
| 87 | return disabledCipherSuites[c] || |
| 88 | rsaKexCiphers[c] || |
| 89 | tdesCiphers[c] |
| 90 | }) |
| 91 | } |
| 92 | |
| 93 | // defaultCipherSuitesTLS13 is also the preference order, since there are no |
| 94 | // disabled by default TLS 1.3 cipher suites. The same AES vs ChaCha20 logic as |
no test coverage detected
searching dependent graphs…