github.com/zmap/zcrypto@v0.0.0-20240512203510-0fef58d9a9db/tls/cipher_suites_test.go (about) 1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package tls 6 7 import ( 8 "testing" 9 ) 10 11 func TestChromeCiphersImplemented(t *testing.T) { 12 for _, cipherID := range ChromeCiphers { 13 supported := cipherIDInCipherList(cipherID, implementedCipherSuites) 14 if supported != true { 15 t.Errorf("Chrome cipher %d (%s) not supported", cipherID, nameForSuite(cipherID)) 16 } 17 } 18 } 19 20 func TestFirefoxCiphersImplemented(t *testing.T) { 21 for _, cipherID := range FirefoxCiphers { 22 supported := cipherIDInCipherList(cipherID, implementedCipherSuites) 23 if supported != true { 24 t.Errorf("Firefox cipher %d (%s) not supported", cipherID, nameForSuite(cipherID)) 25 } 26 } 27 } 28 29 func TestDHECiphersImplemented(t *testing.T) { 30 for _, cipherID := range DHECiphers { 31 supported := cipherIDInCipherList(cipherID, implementedCipherSuites) 32 if supported != true { 33 t.Errorf("DHE cipher %d (%s) not supported", cipherID, nameForSuite(cipherID)) 34 } 35 } 36 } 37 38 /* 39 func TestSafariCiphersImplemented(t *testing.T) { 40 for _, cipherID := range SafariCiphers { 41 supported := cipherIDInCipherList(cipherID, implementedCipherSuites) 42 if supported != true { 43 t.Errorf("Safari cipher %d (%s) not supported", cipherID, nameForSuite(cipherID)) 44 } 45 } 46 } 47 */