GPG/PGP5 encryption
brian moore
bem at cmc.net
Sun Nov 15 19:58:16 CET 1998
On Sun, Nov 15, 1998 at 05:10:53PM -0800, brian moore wrote:
> I think the initial seeding of 'bits' will have to allow for all the
> algorithms GPG knows, not just 3DES.
Or simpler, the attached patch. :)
--
Brian Moore | "The Zen nature of a spammer resembles
Sysadmin, C/Perl Hacker | a cockroach, except that the cockroach
Usenet Vandal | is higher up on the evolutionary chain."
Netscum, Bane of Elves. Peter Olson, Delphi Postmaster
-------------- next part --------------
--- gnupg-cvs/g10/pkclist.c Sun Nov 15 19:54:51 1998
+++ gnupg/g10/pkclist.c Sun Nov 15 19:51:40 1998
@@ -588,7 +588,7 @@
if( !pkr->pk->local_id )
BUG(); /* if this occurs, we can use get_ownertrust to set it */
if( preftype == PREFTYPE_SYM )
- bits[0] = (1<<2); /* 3DES is implicitly there */
+ mask[0] = (1<<2); /* 3DES is implicitly there */
m_free(pref);
pref = get_pref_data( pkr->pk->local_id, pkr->pk->namehash, &npref);
any = 0;
@@ -609,8 +609,9 @@
/*log_debug("mask=%08lX%08lX%08lX%08lX%08lX%08lX%08lX%08lX\n",
(ulong)mask[7], (ulong)mask[6], (ulong)mask[5], (ulong)mask[4],
(ulong)mask[3], (ulong)mask[2], (ulong)mask[1], (ulong)mask[0]);*/
- for(i=0; i < 8; i++ )
- bits[i] &= mask[i];
+ if (pkr != pk_list)
+ for(i=0; i < 8; i++ )
+ bits[i] &= mask[i];
/*log_debug("bits=%08lX%08lX%08lX%08lX%08lX%08lX%08lX%08lX\n",
(ulong)bits[7], (ulong)bits[6], (ulong)bits[5], (ulong)bits[4],
(ulong)bits[3], (ulong)bits[2], (ulong)bits[1], (ulong)bits[0]);*/
More information about the Gnupg-devel
mailing list