mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
crypto.[sha256/sha512]: remove extraneous casts & use rotations from math.bits
This commit is contained in:
parent
c069525e8c
commit
47da52b85b
4 changed files with 14 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue