THashB is a combination of blake2b-512 and SHA256 The cryptographic hash function BLAKE2 is an improved version of the SHA-3 finalist BLAKE.
(b []byte)
| 79 | // The cryptographic hash function BLAKE2 is an improved version of the |
| 80 | // SHA-3 finalist BLAKE. |
| 81 | func THashB(b []byte) []byte { |
| 82 | first := blake2b.Sum512(b) |
| 83 | second := sha256.Sum256(first[:]) |
| 84 | return second[:] |
| 85 | } |
| 86 | |
| 87 | // THashH calculates sha256(blake2b-512(b)) and returns the resulting bytes as a |
| 88 | // Hash. |
no outgoing calls