pycrypto gives bad output from SHA-256 for certain input lengths #199

Closed
opened 2007-11-01 17:08:23 +00:00 by zooko · 5 comments
zooko commented 2007-11-01 17:08:23 +00:00
Owner

The implementation of SHA-256 in pycrypto (which we use in Tahoe <= v0.6.1) gives the wrong output if the input length % 64 is 55.

The plan is to fix this by either applying another patch to our version of pycrypto or switching to a different crypto library. Investigating the latter is why I am working on pycryptopp.

The implementation of SHA-256 in pycrypto (which we use in Tahoe <= v0.6.1) gives the wrong output if the input length % 64 is 55. The plan is to fix this by either applying another patch to our version of pycrypto or switching to a different crypto library. Investigating the latter is why I am working on [pycryptopp](http://allmydata.org/pipermail/tahoe-dev/2007-October/000215.html).
tahoe-lafs added the
unknown
blocker
defect
0.6.1
labels 2007-11-01 17:08:23 +00:00
tahoe-lafs added this to the 0.7.0 milestone 2007-11-01 17:08:23 +00:00
tahoe-lafs added
code
and removed
unknown
labels 2007-11-07 05:32:59 +00:00
zooko commented 2007-11-07 05:56:11 +00:00
Author
Owner

(http://allmydata.org/pipermail/tahoe-dev/2007-November/000231.html)

Next step: update tahoe README to state that the user has to manually install Crypto++, and update the tahoe automatic dependencies to depend on pycryptopp, and change our calls to pycryto's sha256 to pycryptopp's sha256.

(http://allmydata.org/pipermail/tahoe-dev/2007-November/000231.html) Next step: update tahoe README to state that the user has to manually install Crypto++, and update the tahoe automatic dependencies to depend on pycryptopp, and change our calls to pycryto's sha256 to pycryptopp's sha256.
zooko commented 2007-11-07 20:31:14 +00:00
Author
Owner

Next step -- figure out why it doesn't compile on Brian's Mac OS X.

Next step after that -- change uses of pycrypto's SHA-256 to pycryptopp's SHA-256.

Next step -- figure out why it doesn't compile on Brian's Mac OS X. Next step after that -- change uses of pycrypto's SHA-256 to pycryptopp's SHA-256.
zooko commented 2007-11-08 00:04:47 +00:00
Author
Owner

Fixed by changeset:11412da436be9e37.

(Except possibly for build/porting/packaging errors on some systems -- see the loyal BuildBot for details.)

Fixed by changeset:11412da436be9e37. (Except possibly for build/porting/packaging errors on some systems -- see the loyal [BuildBot](wiki/BuildBot) for details.)
tahoe-lafs added the
fixed
label 2007-11-08 00:04:47 +00:00
zooko closed this issue 2007-11-08 00:04:47 +00:00
zooko commented 2007-11-09 19:32:21 +00:00
Author
Owner

The version of pycryptopp that I used had a bug in the SHA-256 wrapper code. This bug is now fixed, so I'm now running tests and will re-apply this patch.

The version of pycryptopp that I used had a bug in the SHA-256 wrapper code. This bug is now fixed, so I'm now running tests and will re-apply this patch.
tahoe-lafs removed the
fixed
label 2007-11-09 19:32:21 +00:00
zooko reopened this issue 2007-11-09 19:32:21 +00:00
zooko commented 2007-11-10 00:48:33 +00:00
Author
Owner

closed again by changeset:5807e83f7ba926af

closed again by changeset:5807e83f7ba926af
tahoe-lafs added the
fixed
label 2007-11-10 00:48:33 +00:00
zooko closed this issue 2007-11-10 00:48:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#199
No description provided.