SecureHash = distinct Sha1Digest
Sha1State = array[0 .. 5 - 1, uint32]
proc init(result: var Sha1State) {.raises: [], tags: [].}
proc secureHash(str: string): SecureHash {.raises: [], tags: [].}
proc secureHashFile(filename: string): SecureHash {.raises: [IOError], tags: [ReadIOEffect].}
proc `$`(self: SecureHash): string {.raises: [], tags: [].}
proc parseSecureHash(hash: string): SecureHash {.raises: [], tags: [].}
proc `==`(a, b: SecureHash): bool {.raises: [], tags: [].}
© 2006–2017 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/securehash.html