securehash: remove unused emptySecureHash
This commit is contained in:
parent
3d266433a7
commit
eccc2f87e9
1 changed files with 0 additions and 8 deletions
|
|
@ -16,14 +16,6 @@ type
|
|||
SHA1Digest = array[0 .. sha_digest_size-1, uint8]
|
||||
SecureHash* = distinct SHA1Digest
|
||||
|
||||
const emptySecureHash = SecureHash([
|
||||
0u8, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
])
|
||||
|
||||
proc sha1(src: string) : SHA1Digest
|
||||
|
||||
proc secureHash*(str: string): SecureHash = SecureHash(sha1(str))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue