From f4c2ecfaa9546d5afffa301111b42f61b61fcb5e Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 1 Aug 2023 06:55:34 +0300 Subject: [PATCH] crypto.sha512: make the new384/0, new512_256/0, new512_224/0 functions public --- vlib/crypto/sha512/sha512.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/crypto/sha512/sha512.v b/vlib/crypto/sha512/sha512.v index 167bc2f007..b8c66f7c1d 100644 --- a/vlib/crypto/sha512/sha512.v +++ b/vlib/crypto/sha512/sha512.v @@ -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) }