]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/crypto/tls/gost.go
Use GoGOST's PublicKey wrappers
[gostls13.git] / src / crypto / tls / gost.go
index d60a5b82a3dc74a08f53c0f22349f8a136a116a8..3852414a62a50d9e3c5fc901d3c51095c9d21c12 100644 (file)
@@ -15,12 +15,6 @@ import (
 
 const GOSTAEADNonceSize = 8
 
-func reverseBytes(d []byte) {
-       for i, j := 0, len(d)-1; i < j; i, j = i+1, j-1 {
-               d[i], d[j] = d[j], d[i]
-       }
-}
-
 type gostAEAD struct {
        nonceMask []byte
        tlsTree   *gost34112012256.TLSTree