diff --git a/read.go b/read.go index eb8b9aa..e2af860 100644 --- a/read.go +++ b/read.go @@ -1052,7 +1052,7 @@ func decryptStream(key []byte, useAES bool, ptr objptr, rd io.Reader) io.Reader rd = &cbcReader{cbc: cbc, rd: rd, buf: make([]byte, 16)} } else { c, _ := rc4.NewCipher(key) - rd = &cipher.StreamReader{c, rd} + rd = &cipher.StreamReader{S: c, R: rd} } return rd }