crypto.sha512, crypto.sha256 : Make public the write() and sum() methods (#13461)

This commit is contained in:
blackshirt 2022-02-14 05:10:50 +07:00 committed by GitHub
parent 74048e2f17
commit 57e850e932
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -90,7 +90,7 @@ pub fn new224() &Digest {
}
// write writes the contents of `p_` to the internal hash representation.
fn (mut d Digest) write(p_ []byte) ?int {
pub fn (mut d Digest) write(p_ []byte) ?int {
unsafe {
mut p := p_
nn := p.len