1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

crypto.sha512: make the new384/0, new512_256/0, new512_224/0 functions public

This commit is contained in:
Delyan Angelov 2023-08-01 06:55:34 +03:00
parent 9be80198fc
commit f4c2ecfaa9
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -151,17 +151,17 @@ pub fn new() &Digest {
}
// new512_224 returns a new Digest (implementing hash.Hash) computing the SHA-512/224 checksum.
fn new512_224() &Digest {
pub fn new512_224() &Digest {
return new_digest(.sha512_224)
}
// new512_256 returns a new Digest (implementing hash.Hash) computing the SHA-512/256 checksum.
fn new512_256() &Digest {
pub fn new512_256() &Digest {
return new_digest(.sha512_256)
}
// new384 returns a new Digest (implementing hash.Hash) computing the SHA-384 checksum.
fn new384() &Digest {
pub fn new384() &Digest {
return new_digest(.sha384)
}