1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

implement crypto.sha256 + some crypto cleanup

This commit is contained in:
joe-conigliaro
2019-07-18 18:50:05 +10:00
committed by Alexander Medvednikov
parent c0911ea74b
commit 43070412f7
8 changed files with 424 additions and 38 deletions

View File

@@ -143,9 +143,9 @@ pub fn sum(data []byte) []byte {
}
fn block(dig &Digest, p []byte) {
// For now just use block_generic until we have specific
// For now just use block_generic until we have specific
// architecture optimized versions
block_generic(dig, p)
block_generic(dig, p)
}
pub fn (d &Digest) size() int { return Size }