summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-09-18 17:24:53 +0200
committerWerner Koch <wk@gnupg.org>1998-09-18 17:24:53 +0200
commitb4aeef458c51b9debd394592e76b93cc6b00e0a2 (patch)
treee87818f5c15e12189f5fc054faf6d09e07e3d120 /include
parentMichael Roth has released is des impl. (diff)
downloadgnupg2-b4aeef458c51b9debd394592e76b93cc6b00e0a2.tar.xz
gnupg2-b4aeef458c51b9debd394592e76b93cc6b00e0a2.zip
.
Diffstat (limited to 'include')
-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