getOptimalDefaultCipherSuites returns an appropriate cipher suite to use depending on the hardware support for AES. See https://github.com/caddyserver/caddy/issues/1674
()
| 75 | // |
| 76 | // See https://github.com/caddyserver/caddy/issues/1674 |
| 77 | func getOptimalDefaultCipherSuites() []uint16 { |
| 78 | if cpuid.CPU.Supports(cpuid.AESNI) { |
| 79 | return defaultCipherSuitesWithAESNI |
| 80 | } |
| 81 | return defaultCipherSuitesWithoutAESNI |
| 82 | } |
| 83 | |
| 84 | // SupportedCurves is the unordered map of supported curves |
| 85 | // or key exchange mechanisms ("curves" traditionally). |
no outgoing calls
no test coverage detected