From 1a1effd2aa3cedf1cd8d989cd69cc95dd165893a Mon Sep 17 00:00:00 2001 From: Chelsea Holland Komlo Date: Wed, 8 Aug 2018 13:58:28 -0400 Subject: [PATCH] add comments --- helper/tlsutil/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helper/tlsutil/config.go b/helper/tlsutil/config.go index 8d24bc0f3..b8e043cbd 100644 --- a/helper/tlsutil/config.go +++ b/helper/tlsutil/config.go @@ -43,11 +43,14 @@ var supportedTLSCiphers = map[string]uint16{ "TLS_RSA_WITH_AES_256_CBC_SHA": tls.TLS_RSA_WITH_AES_256_CBC_SHA, } +// algorithmStringRepr is the string representation of a signing algorithm type algorithmStringRepr string var rsaStringRepr algorithmStringRepr = "RSA" var ecdsaStringRepr algorithmStringRepr = "ECDSA" +// supportedCipherSignatures is the supported cipher suites with their +// corresponding signature algorithm var supportedCipherSignatures = map[string]algorithmStringRepr{ "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305": rsaStringRepr, "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305": ecdsaStringRepr,