mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
crypto/sha256: make digest sum public (#10047)
This commit is contained in:
@@ -124,7 +124,7 @@ fn (mut d Digest) write(p_ []byte) ?int {
|
||||
}
|
||||
}
|
||||
|
||||
fn (d &Digest) sum(b_in []byte) []byte {
|
||||
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
|
||||
hash := d0.checksum()
|
||||
|
||||
Reference in New Issue
Block a user