Replace bytes.Clone() with append()

This commit is contained in:
RPRX
2023-03-09 12:52:56 +00:00
committed by GitHub
parent a7ae8b57f1
commit 0d0713b108
+1 -1
View File
@@ -98,7 +98,7 @@ func (hs *serverHandshakeStateTLS13) handshake() error {
}
*/
{
signedCert := bytes.Clone(signedCert)
signedCert := append([]byte{}, signedCert...)
h := hmac.New(sha512.New, c.AuthKey)
h.Write(ed25519Priv[32:])