plumbing/hash/hash_sha1.go
raw| 1 | //go:build !sha256 |
| 2 | // +build !sha256 |
| 3 | |
| 4 | package hash |
| 5 | |
| 6 | import "crypto" |
| 7 | |
| 8 | const ( |
| 9 | // CryptoType defines what hash algorithm is being used. |
| 10 | CryptoType = crypto.SHA1 |
| 11 | // Size defines the amount of bytes the hash yields. |
| 12 | Size = 20 |
| 13 | // HexSize defines the strings size of the hash when represented in hexadecimal. |
| 14 | HexSize = 40 |
| 15 | ) |