aboutsummaryrefslogtreecommitdiffstats
path: root/include/cipher.h
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2005-02-10 04:06:30 +0000
committerDavid Shaw <[email protected]>2005-02-10 04:06:30 +0000
commita3ea9626797ecf9ce5dba230c9617db84c159e5a (patch)
tree2909fa96f02e1f9af1d1bf21c7b790b8886fd9c2 /include/cipher.h
parent* trustdb.h, trustdb.c (trustdb_check_or_update): New. If the trustdb (diff)
downloadgnupg-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--include/cipher.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/cipher.h b/include/cipher.h
index 41271eba6..da3a7d8f3 100644
--- a/include/cipher.h
+++ b/include/cipher.h
@@ -1,6 +1,6 @@
/* cipher.h
- * Copyright (C) 1998, 1999, 2000, 2001, 2003,
- * 2004 Free Software Foundation, Inc.
+ * Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004,
+ * 2005 Free Software Foundation, Inc.
*
* This file is part of GNUPG.
*
@@ -70,12 +70,14 @@
#define is_ELGAMAL(a) ((a)==PUBKEY_ALGO_ELGAMAL_E)
#define is_DSA(a) ((a)==PUBKEY_ALGO_DSA)
-typedef struct {
- int algo;
- int keylen;
- int algo_info_printed;
- int use_mdc;
- byte key[32]; /* this is the largest used keylen (256 bit) */
+typedef struct
+{
+ int algo;
+ int keylen;
+ int algo_info_printed;
+ int use_mdc;
+ int symmetric;
+ byte key[32]; /* this is the largest used keylen (256 bit) */
} DEK;
struct cipher_handle_s;