From bffe54007bda1ee0207327a8a84d9854199cf18e Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sun, 30 May 2021 20:52:22 -0700 Subject: [PATCH] remove CipherSuiteName and HkdfExtract for Go 1.17 --- internal/qtls/go117.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/internal/qtls/go117.go b/internal/qtls/go117.go index 7226978a5..8e0761018 100644 --- a/internal/qtls/go117.go +++ b/internal/qtls/go117.go @@ -52,16 +52,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) -} - // AEADAESGCMTLS13 creates a new AES-GCM AEAD for TLS 1.3 func AEADAESGCMTLS13(key, fixedNonce []byte) cipher.AEAD { return qtls.AEADAESGCMTLS13(key, fixedNonce)