fix length check in encode()
fix length check in encode()

changes encode() to validate the length of the hash function's
output, not the input.  Also renames the input paremeter from
`digest` to `content`, to reflect that the function accepts
un-digested input data and performs its own hash digest, and
updates the doc comment.

tehmaze/python-multihash