aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/cipher.h2
-rw-r--r--include/errors.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/cipher.h b/include/cipher.h
index d26812647..14b99803e 100644
--- a/include/cipher.h
+++ b/include/cipher.h
@@ -60,7 +60,7 @@
typedef struct {
int algo;
int keylen;
- byte key[20]; /* this is the largest used keylen */
+ byte key[24]; /* this is the largest used keylen (3des) */
} DEK;
typedef struct cipher_handle_s *CIPHER_HANDLE;
diff --git a/include/errors.h b/include/errors.h
index 40fffcb50..4cc235e6a 100644
--- a/include/errors.h
+++ b/include/errors.h
@@ -62,7 +62,8 @@
#define G10ERR_TIME_CONFLICT 40
#define G10ERR_WR_PUBKEY_ALGO 41 /* unusabe pubkey algo */
#define G10ERR_FILE_EXISTS 42
-#define G10ERR_WEAK_KEY 43
+#define G10ERR_WEAK_KEY 43 /* NOTE: hardcoded intothe cipher modules */
+#define G10ERR_WRONG_KEYLEN 44 /* NOTE: hardcoded intothe cipher modules */
#ifndef HAVE_STRERROR