Remove wrap prefix

This commit is contained in:
9seconds
2018-07-08 08:16:21 +03:00
parent a0ba89b105
commit 388f7a23d3
17 changed files with 59 additions and 66 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ import (
type StreamCipher struct {
encryptor cipher.Stream
decryptor cipher.Stream
conn WrapStreamReadWriteCloser
conn StreamReadWriteCloser
}
func (s *StreamCipher) Read(p []byte) (int, error) {
@@ -58,7 +58,7 @@ func (s *StreamCipher) Close() error {
return s.conn.Close()
}
func NewStreamCipher(conn WrapStreamReadWriteCloser, encryptor, decryptor cipher.Stream) WrapStreamReadWriteCloser {
func NewStreamCipher(conn StreamReadWriteCloser, encryptor, decryptor cipher.Stream) StreamReadWriteCloser {
return &StreamCipher{
conn: conn,
encryptor: encryptor,