From 4b21d3e3648af003b4943a4f1c3348aac1ae73c7 Mon Sep 17 00:00:00 2001 From: Taillook Date: Sun, 5 Dec 2021 03:16:44 +0900 Subject: [PATCH] crypto.sha256: add missing documentation of sum (#12716) --- vlib/crypto/sha256/sha256.v | 1 + 1 file changed, 1 insertion(+) 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