mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
crypto.[md5/rc4/sha1]: remove extraneous casts
This commit is contained in:

committed by
Alexander Medvednikov

parent
f1f720cc78
commit
c069525e8c
@ -51,10 +51,10 @@ pub fn new_cipher(key []byte) ?Cipher {
|
||||
// the process's memory.
|
||||
pub fn (c mut Cipher) reset() {
|
||||
for i in c.s {
|
||||
c.s[i] = u32(0)
|
||||
c.s[i] = 0
|
||||
}
|
||||
c.i = byte(0)
|
||||
c.j = byte(0)
|
||||
c.i = 0
|
||||
c.j = 0
|
||||
}
|
||||
|
||||
// xor_key_stream sets dst to the result of XORing src with the key stream.
|
||||
|
Reference in New Issue
Block a user