HashB calculates hash(b) and returns the resulting bytes.
(b []byte)
| 40 | |
| 41 | // HashB calculates hash(b) and returns the resulting bytes. |
| 42 | func HashB(b []byte) []byte { |
| 43 | hash := sha256.Sum256(b) |
| 44 | return hash[:] |
| 45 | } |
| 46 | |
| 47 | // HashH calculates hash(b) and returns the resulting bytes as a Hash. |
| 48 | func HashH(b []byte) Hash { |
no outgoing calls