p:hash

Vojtech,

I think the p:hash test suite results are wrong, which means you and
I implemented them with the same bug :-)

For example, the expected result of hash-002 is

  e75c25ded7f06c768653b27b29d39fa

I think the correct result is

  e75c25ded7f006c768653b27b29d39fa

Both of us were failing to make sure that byte values < 16 in the hash
were padded to two characters.

So 0x0 became "0" where I think it should be "00".

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | I maintain there is much more wonder in
http://nwalsh.com/            | science than in pseudoscience. And in
                              | addition, to whatever measure this term
                              | has any meaning, science has the
                              | additional virtue, and it is not an
                              | inconsiderable one, of being
                              | true.--Carl Sagan

Received on Monday, 12 April 2010 20:39:59 UTC