diff options
author | David Shaw <[email protected]> | 2005-02-10 04:06:30 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2005-02-10 04:06:30 +0000 |
commit | a3ea9626797ecf9ce5dba230c9617db84c159e5a (patch) | |
tree | 2909fa96f02e1f9af1d1bf21c7b790b8886fd9c2 /g10/mainproc.c | |
parent | * trustdb.h, trustdb.c (trustdb_check_or_update): New. If the trustdb (diff) | |
download | gnupg-a3ea9626797ecf9ce5dba230c9617db84c159e5a.tar.gz gnupg-a3ea9626797ecf9ce5dba230c9617db84c159e5a.zip |
Disable the "quick check" bytes for PK decryptions. This is in
regards to the Mister and Zuccherato attack on OpenPGP CFB mode.
Diffstat (limited to '')
-rw-r--r-- | g10/mainproc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c index 8db7e45be..83bb5d811 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -1,6 +1,6 @@ /* mainproc.c - handle packets - * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, - * 2004 Free Software Foundation, Inc. + * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, + * 2005 Free Software Foundation, Inc. * * This file is part of GnuPG. * @@ -330,6 +330,8 @@ proc_symkey_enc( CTX c, PACKET *pkt ) if(c->dek) { + c->dek->symmetric=1; + /* FIXME: This doesn't work perfectly if a symmetric key comes before a public key in the message - if the user doesn't know the passphrase, then there is |