From b4aeef458c51b9debd394592e76b93cc6b00e0a2 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 18 Sep 1998 15:24:53 +0000 Subject: . --- include/cipher.h | 2 +- include/errors.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include') 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 -- cgit v1.2.3