Merge pull request #3174 from lucas-clemente/use-tls-cipher-suite-name

use tls.CipherSuiteName, instead of wrapping it in the qtls package
This commit is contained in:
Marten Seemann
2021-05-29 11:45:39 -07:00
committed by GitHub
5 changed files with 9 additions and 20 deletions

View File

@@ -53,11 +53,6 @@ const (
EncryptionApplication = qtls.EncryptionApplication
)
// CipherSuiteName gets the name of a cipher suite.
func CipherSuiteName(id uint16) string {
return qtls.CipherSuiteName(id)
}
// HkdfExtract generates a pseudorandom key for use with Expand from an input secret and an optional independent salt.
func HkdfExtract(hash crypto.Hash, newSecret, currentSecret []byte) []byte {
return qtls.HkdfExtract(hash, newSecret, currentSecret)