We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
new_cipher
!&Cipher
1 parent e912854 commit 5c8fd15Copy full SHA for 5c8fd15
1 file changed
vlib/crypto/rc4/rc4.v
@@ -31,11 +31,11 @@ pub fn (mut c Cipher) free() {
31
32
// new_cipher creates and returns a new Cipher. The key argument should be the
33
// RC4 key, at least 1 byte and at most 256 bytes.
34
-pub fn new_cipher(key []u8) !Cipher {
+pub fn new_cipher(key []u8) !&Cipher {
35
if key.len < 1 || key.len > 256 {
36
return error('crypto.rc4: invalid key size ' + key.len.str())
37
}
38
- mut c := Cipher{
+ mut c := &Cipher{
39
s: []u32{len: (256)}
40
41
for i in 0 .. 256 {
0 commit comments