diff --git a/vlib/crypto/sha256/sha256.v b/vlib/crypto/sha256/sha256.v index 106df94950..2f793e5bcc 100644 --- a/vlib/crypto/sha256/sha256.v +++ b/vlib/crypto/sha256/sha256.v @@ -124,6 +124,7 @@ fn (mut d Digest) write(p_ []byte) ?int { } } +// sum returns the SHA256 or SHA224 checksum of digest with the data. pub fn (d &Digest) sum(b_in []byte) []byte { // Make a copy of d so that caller can keep writing and summing. mut d0 := *d