1
0
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:
joe-conigliaro
2019-09-26 21:57:31 +10:00
committed by Alexander Medvednikov
parent f1f720cc78
commit c069525e8c
4 changed files with 14 additions and 14 deletions

View File

@ -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.