diff options
author | Ivan Bobev <bobeff@gmail.com> | 2019-07-10 11:20:08 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-07-10 10:20:08 +0200 |
commit | 96523cdd3e8ada367b804efbd47f4763a1269fa8 (patch) | |
tree | f333f39be0c2756e42a10fb3803fcfbf81c59a71 /lib/std | |
parent | 18182e4bfd046f38c22dc95b29263fb40ac75e5b (diff) | |
download | Nim-96523cdd3e8ada367b804efbd47f4763a1269fa8.tar.gz |
Make public additional types from sha1 module [feature] (#11694)
* Make public additional types from sha1 module After making public newSha1State, update and finalize methods from the sha1 module was forgotten to be made public Sha1Digest and Sha1State types used by the new public methods. * Update changelog.md with sha1 module changes
Diffstat (limited to 'lib/std')
-rw-r--r-- | lib/std/sha1.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/sha1.nim b/lib/std/sha1.nim index cd100cd86..d99715583 100644 --- a/lib/std/sha1.nim +++ b/lib/std/sha1.nim @@ -40,11 +40,11 @@ from endians import bigEndian32, bigEndian64 const Sha1DigestSize = 20 type - Sha1Digest = array[0 .. Sha1DigestSize-1, uint8] + Sha1Digest* = array[0 .. Sha1DigestSize-1, uint8] SecureHash* = distinct Sha1Digest type - Sha1State = object + Sha1State* = object count: int state: array[5, uint32] buf: array[64, byte] |