Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. 1. `hash.Sum([]byte{})` does _not_ do what I expected it to do. It prefixes the _output_ with those bytes. I expected it to use it as a suffix for the hashing algorithm, but without actually affecting the underlying hash data.
  2. i.e. hash.Sum([]byte("foobar") -> "foobar<hash(written bytes)>" instead of "<hash(written bytes + "foobar">"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement