Skip to content
Permalink
Browse files
Prefer GCM over CBC suites
Match OpenSSL (and Chromium's) ordering of CipherSuites.
Go also has a hardware accelerated implementation, so this should
be a better experience in almost all cases.

Relates to #199
  • Loading branch information
Sean-Der committed Feb 22, 2020
1 parent b693635 commit 147774b64b6a8ac9bd0af5a7efff69ee8e0fd4a8
Showing with 3 additions and 3 deletions.
  1. +3 −3 cipher_suite.go
@@ -115,10 +115,10 @@ func cipherSuiteForID(id CipherSuiteID) cipherSuite {
// CipherSuites we support in order of preference
func defaultCipherSuites() []cipherSuite {
return []cipherSuite{
&cipherSuiteTLSEcdheRsaWithAes256CbcSha{},
&cipherSuiteTLSEcdheEcdsaWithAes256CbcSha{},
&cipherSuiteTLSEcdheRsaWithAes128GcmSha256{},
&cipherSuiteTLSEcdheEcdsaWithAes128GcmSha256{},
&cipherSuiteTLSEcdheRsaWithAes128GcmSha256{},
&cipherSuiteTLSEcdheEcdsaWithAes256CbcSha{},
&cipherSuiteTLSEcdheRsaWithAes256CbcSha{},
newCipherSuiteTLSEcdheEcdsaWithAes128Ccm(),
newCipherSuiteTLSEcdheEcdsaWithAes128Ccm8(),
}

0 comments on commit 147774b

Please sign in to comment.