diff options
author | 2006-04-26 23:39:43 +0000 | |
---|---|---|
committer | 2006-04-26 23:39:43 +0000 | |
commit | 629ae0cb4b516a0d8096bdd7b3c708c6895f8c8e (patch) | |
tree | 53c85b93766461f121204d2ffbb1074b7481cc1e /dev-python/pycrypto/files | |
parent | Added -alpha keyword. Doesn't work on alpha. (diff) | |
download | historical-629ae0cb4b516a0d8096bdd7b3c708c6895f8c8e.tar.gz historical-629ae0cb4b516a0d8096bdd7b3c708c6895f8c8e.tar.bz2 historical-629ae0cb4b516a0d8096bdd7b3c708c6895f8c8e.zip |
Fix from upstream for SHA256 #131293 by Ciaran McCreesh.
Package-Manager: portage-2.1_pre9-r4
Diffstat (limited to 'dev-python/pycrypto/files')
-rw-r--r-- | dev-python/pycrypto/files/digest-pycrypto-2.0.1-r4 | 2 | ||||
-rw-r--r-- | dev-python/pycrypto/files/digest-pycrypto-2.0.1-r5 | 3 | ||||
-rw-r--r-- | dev-python/pycrypto/files/pycrypto-2.0.1-sha256.patch | 23 |
3 files changed, 28 insertions, 0 deletions
diff --git a/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r4 b/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r4 index aa9117b02ce5..4e5b88462ffb 100644 --- a/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r4 +++ b/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r4 @@ -1 +1,3 @@ MD5 4d5674f3898a573691ffb335e8d749cd pycrypto-2.0.1.tar.gz 154292 +RMD160 5ce938a24f77f414e42680c17ef9b6dc8de94a2e pycrypto-2.0.1.tar.gz 154292 +SHA256 b08d4ed54c9403c77778a3803e53a4f33f359b42d94f6f3e14abb1bf4941e6ea pycrypto-2.0.1.tar.gz 154292 diff --git a/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r5 b/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r5 new file mode 100644 index 000000000000..4e5b88462ffb --- /dev/null +++ b/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r5 @@ -0,0 +1,3 @@ +MD5 4d5674f3898a573691ffb335e8d749cd pycrypto-2.0.1.tar.gz 154292 +RMD160 5ce938a24f77f414e42680c17ef9b6dc8de94a2e pycrypto-2.0.1.tar.gz 154292 +SHA256 b08d4ed54c9403c77778a3803e53a4f33f359b42d94f6f3e14abb1bf4941e6ea pycrypto-2.0.1.tar.gz 154292 diff --git a/dev-python/pycrypto/files/pycrypto-2.0.1-sha256.patch b/dev-python/pycrypto/files/pycrypto-2.0.1-sha256.patch new file mode 100644 index 000000000000..8d6b63489fcd --- /dev/null +++ b/dev-python/pycrypto/files/pycrypto-2.0.1-sha256.patch @@ -0,0 +1,23 @@ +http://bugs.gentoo.org/131293 + +=================================================================== +RCS file: /cvsroot/pycrypto/crypto/src/SHA256.c,v +retrieving revision 1.3 +retrieving revision 1.4 +diff -u -r1.3 -r1.4 +--- pycrypto/crypto/src/SHA256.c 2005/06/10 19:22:55 1.3 ++++ pycrypto/crypto/src/SHA256.c 2005/11/29 16:31:36 1.4 +@@ -136,11 +136,11 @@ + /* append the '1' bit */
+ md->buf[md->curlen++] = 0x80;
+
+- /* if the length is currenlly above 56 bytes we append zeros
++ /* if the length is currently above 56 bytes we append zeros
+ * then compress. Then we can fall back to padding zeros and length
+ * encoding like normal.
+ */
+- if (md->curlen >= 56) {
++ if (md->curlen > 56) {
+ for (; md->curlen < 64;)
+ md->buf[md->curlen++] = 0;
+ sha_compress(md);
|