Module securehash

Types

SecureHash = distinct Sha1Digest
  Source Edit
Sha1State = array[0 .. 5 - 1, uint32]
  Source Edit

Procs

proc init(result: var Sha1State) {.
raises: [], tags: []
.}
  Source Edit
proc secureHash(str: string): SecureHash {.
raises: [], tags: []
.}
  Source Edit
proc secureHashFile(filename: string): SecureHash {.
raises: [IOError], tags: [ReadIOEffect]
.}
  Source Edit
proc `$`(self: SecureHash): string {.
raises: [], tags: []
.}
  Source Edit
proc parseSecureHash(hash: string): SecureHash {.
raises: [ValueError], tags: []
.}
  Source Edit
proc `==`(a, b: SecureHash): bool {.
raises: [], tags: []
.}
  Source Edit