Skip to content

Commit

Permalink
crypto.sha256: add missing documentation of sum (#12716)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taillook committed Dec 4, 2021
1 parent 81a1490 commit 4b21d3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vlib/crypto/sha256/sha256.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b21d3e

Please sign in to comment.