Remove redundand utils file

This commit is contained in:
9seconds
2021-03-18 17:50:54 +03:00
parent 0330a0e5cd
commit 188fa6a04a
2 changed files with 9 additions and 15 deletions
@@ -48,3 +48,12 @@ func ClientHandshake(secret []byte, reader io.Reader) (int16, cipher.Stream, cip
return handshakeFrame.dc(), encryptor, decryptor, nil
}
func makeAesCtr(key, iv []byte) cipher.Stream {
block, err := aes.NewCipher(key)
if err != nil {
panic(err)
}
return cipher.NewCTR(block, iv)
}
-15
View File
@@ -1,15 +0,0 @@
package obfuscated2
import (
"crypto/aes"
"crypto/cipher"
)
func makeAesCtr(key, iv []byte) cipher.Stream {
block, err := aes.NewCipher(key)
if err != nil {
panic(err)
}
return cipher.NewCTR(block, iv)
}