leftRotate rotates x left by n bits
(x, n uint32)
| 36 | |
| 37 | // leftRotate rotates x left by n bits |
| 38 | func leftRotate(x, n uint32) uint32 { |
| 39 | return (x << n) | (x >> (32 - n)) |
| 40 | } |
| 41 | |
| 42 | // Hash computes the SHA-1 hash of the input message |
| 43 | func Hash(message []byte) [20]byte { |