[issue6473] hmac sha384/sha512 fails test vectors

2009-07-17 Thread Iain Wade
Iain Wade added the comment: d'oh, I should have checked HEAD before submitting the bug. I am running 2.5.1 on OSX, the fix seems to be in 2.5.2 and above. Thanks, and sorry for wasting your time. -- status: open -> closed ___ Python tracker

[issue6473] hmac sha384/sha512 fails test vectors

2009-07-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Indeed, the provided test file passes on all python versions I have. Iain, does this script fail on some version? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue6473] hmac sha384/sha512 fails test vectors

2009-07-16 Thread Hagen Fürstenau
Hagen Fürstenau added the comment: Seems like this has already been fixed as issue 1385. -- nosy: +hagen ___ Python tracker ___ ___ Py

[issue6473] hmac sha384/sha512 fails test vectors

2009-07-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: -> critical stage: -> needs patch versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker ___ _

[issue6473] hmac sha384/sha512 fails test vectors

2009-07-12 Thread Iain Wade
New submission from Iain Wade : Test vectors are in the following draft rfc: http://tools.ietf.org/html/draft-nystrom-smime-hmac-sha The problem is that hmac.py has a hard-coded block size of 64, while SHA-384 and SHA-512 have a 128-byte block size. Suggested fix is either: a/ have the variou