-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NotDashEscaped: You need GnuPG to verify this message This is a patch file to compile gpg version 1.0.6c with SHA2 support Copyright 2001 Free Software Foundation, Inc. This patch is free software; you can use it, redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Unpack file gnupg-1.0.6c.tar.gz Change to directory gnupg-1.0.6c and give this command: patch -p1 < somepath/gnupg-1.0.6c-sha2.diff Now you can type: ./configure make diff -ur gnupg-1.0.6c-orig/g10/armor.c gnupg-1.0.6c/g10/armor.c --- gnupg-1.0.6c-orig/g10/armor.c Tue Oct 2 17:32:20 2001 +++ gnupg-1.0.6c/g10/armor.c Mon Mar 4 17:03:22 2002 @@ -251,6 +251,12 @@ found |= 8; else if( !strncmp( s, "TIGER", s2-s ) ) /* used by old versions */ found |= 8; + else if( !strncmp( s, "SHA256", s2-s ) ) + found |= 16; + else if( !strncmp( s, "SHA384", s2-s ) ) + found |= 32; + else if( !strncmp( s, "SHA512", s2-s ) ) + found |= 64; else return 0; for(; *s2 && (*s2==' ' || *s2 == '\t'); s2++ ) @@ -860,7 +866,7 @@ /* the buffer is at least 15+n*15 bytes long, so it * is easy to construct the packets */ - hashes &= 1|2|4|8; + hashes &= 1|2|4|8|16|32|64; if( !hashes ) { hashes |= 4; /* default to MD 5 */ if( opt.pgp2_workarounds ) @@ -881,6 +887,12 @@ buf[n++] = DIGEST_ALGO_MD5; if( hashes & 8 ) buf[n++] = DIGEST_ALGO_TIGER; + if( hashes & 16 ) + buf[n++] = DIGEST_ALGO_SHA256; + if( hashes & 32 ) + buf[n++] = DIGEST_ALGO_SHA384; + if( hashes & 64 ) + buf[n++] = DIGEST_ALGO_SHA512; buf[1] = n - 2; /* followed by a plaintext packet */ diff -ur gnupg-1.0.6c-orig/include/cipher.h gnupg-1.0.6c/include/cipher.h --- gnupg-1.0.6c-orig/include/cipher.h Fri Sep 28 18:07:30 2001 +++ gnupg-1.0.6c/include/cipher.h Mon Mar 4 17:05:17 2002 @@ -56,6 +56,9 @@ #define DIGEST_ALGO_SHA1 2 #define DIGEST_ALGO_RMD160 3 #define DIGEST_ALGO_TIGER 6 +#define DIGEST_ALGO_SHA256 8 +#define DIGEST_ALGO_SHA384 9 +#define DIGEST_ALGO_SHA512 10 #define is_RSA(a) ((a)==PUBKEY_ALGO_RSA || (a)==PUBKEY_ALGO_RSA_E \ || (a)==PUBKEY_ALGO_RSA_S ) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (MingW32) iD8DBQE8g5LxMFpNUS4lDGQRAvt4AJ4qFjNaFbJb9izSq6eDNymtGqE56gCfWe5C m8t1F7UXY8N4kokzkZa7elE= =VUod -----END PGP SIGNATURE-----