bugfix: decode_hex_digest should let decode_hex handle the string decoding stuff. just check the returned number of bytes is correct.