Message1272

Author akuchling
Recipients
Date 2006-11-18.22:22:22
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
test_hmac and test_pep247 fail because of problems with the SHA module.

* SHA and MD5 objects lack a .digest_size attribute.

* Successive calls to digest() return different values.

* For digest(), the byte array is converted to a string using the default encoding, which produces weird results if it's UTF-8.  It should hardwire using ISO-8859-1, because we want a 1-to-1 mapping of characters.

The attached patch fixes test_pep247.  test_hmac still fails; I'm still looking into the problem.
History
Date User Action Args
2008-02-20 17:17:35adminlinkissue1599004 messages
2008-02-20 17:17:35admincreate