/[gentoo-alt]/trunk/prefix/dev-python/pycrypto/files/pycrypto-2.0.1-sha256.patch
Gentoo

Contents of /trunk/prefix/dev-python/pycrypto/files/pycrypto-2.0.1-sha256.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1531 - (show annotations) (download)
Tue Sep 19 20:45:53 2006 UTC (8 years ago) by grobian
File size: 912 byte(s)
Sync with main tree


1 http://bugs.gentoo.org/131293
2
3 ===================================================================
4 RCS file: /cvsroot/pycrypto/crypto/src/SHA256.c,v
5 retrieving revision 1.3
6 retrieving revision 1.4
7 diff -u -r1.3 -r1.4
8 --- pycrypto/crypto/src/SHA256.c 2005/06/10 19:22:55 1.3
9 +++ pycrypto/crypto/src/SHA256.c 2005/11/29 16:31:36 1.4
10 @@ -136,11 +136,11 @@
11 /* append the '1' bit */
12 md->buf[md->curlen++] = 0x80;
13
14 - /* if the length is currenlly above 56 bytes we append zeros
15 + /* if the length is currently above 56 bytes we append zeros
16 * then compress. Then we can fall back to padding zeros and length
17 * encoding like normal.
18 */
19 - if (md->curlen >= 56) {
20 + if (md->curlen > 56) {
21 for (; md->curlen < 64;)
22 md->buf[md->curlen++] = 0;
23 sha_compress(md);

  ViewVC Help
Powered by ViewVC 1.1.20