homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kristjan.jonsson
Recipients kristjan.jonsson
Date 2010年11月16日.07:36:52
SpamBayes Score 3.8620245e-05
Marked as misclassified No
Message-id <1289893015.01.0.604303806999.issue10430@psf.upfronthosting.co.za>
In-reply-to
Content
in shamodule.c, the digest() method just creates a simple bytes string of the digest. The digest is stored as an array of 32 bit integers in the native representation. Therefore, the digest will be different on big- and little-endian machines.
The specification (http://en.wikipedia.org/wiki/SHA-1) suggest that the digest should actually be big endian, so the standard implementation on most home machines is actually wrong
Actually, looking at the code, hexdigest() has the same problem!
History
Date User Action Args
2010年11月16日 07:36:55kristjan.jonssonsetrecipients: + kristjan.jonsson
2010年11月16日 07:36:55kristjan.jonssonsetmessageid: <1289893015.01.0.604303806999.issue10430@psf.upfronthosting.co.za>
2010年11月16日 07:36:52kristjan.jonssonlinkissue10430 messages
2010年11月16日 07:36:52kristjan.jonssoncreate

AltStyle によって変換されたページ (->オリジナル) /