Message121268
| 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:55 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson |
| 2010年11月16日 07:36:55 | kristjan.jonsson | set | messageid: <1289893015.01.0.604303806999.issue10430@psf.upfronthosting.co.za> |
| 2010年11月16日 07:36:52 | kristjan.jonsson | link | issue10430 messages |
| 2010年11月16日 07:36:52 | kristjan.jonsson | create |
|