crypto.[sha256/sha512]: remove extraneous casts & use rotations from math.bits

This commit is contained in:
joe-conigliaro 2019-09-26 23:38:12 +10:00 committed by Alexander Medvednikov
parent c069525e8c
commit 47da52b85b
4 changed files with 14 additions and 12 deletions

View file

@ -117,7 +117,7 @@ fn (d mut Digest) reset() {
d.h[7] = Init7
}
d.nx = 0
d.len = u64(0)
d.len = 0
}
fn _new(hash crypto.Hash) &Digest {