MCPcopy
hub / github.com/caddyserver/caddy / getOptimalDefaultCipherSuites

Function getOptimalDefaultCipherSuites

modules/caddytls/values.go:77–82  ·  view source on GitHub ↗

getOptimalDefaultCipherSuites returns an appropriate cipher suite to use depending on the hardware support for AES. See https://github.com/caddyserver/caddy/issues/1674

()

Source from the content-addressed store, hash-verified

75//
76// See https://github.com/caddyserver/caddy/issues/1674
77func 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).

Callers 1

setDefaultTLSParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected