HashH calculates hash(b) and returns the resulting bytes as a Hash.
(b []byte)
| 46 | |
| 47 | // HashH calculates hash(b) and returns the resulting bytes as a Hash. |
| 48 | func HashH(b []byte) Hash { |
| 49 | return Hash(sha256.Sum256(b)) |
| 50 | } |
| 51 | |
| 52 | // FNVHash32B calculates hash(b) into [0, 2^64] and returns the resulting bytes. |
| 53 | func FNVHash32B(b []byte) []byte { |