summaryrefslogtreecommitdiff
path: root/cipher/twofish.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-11-13 16:43:20 +0000
committerWerner Koch <wk@gnupg.org>1999-11-13 16:43:20 +0000
commitf0ea5ed32081cfb734eae236a21a73f179c59e69 (patch)
tree8525a739a443756fbb29ca5280b9f7adc5bde3ff /cipher/twofish.c
parentf36733037c144e888d4d7190eb123b375e265dd4 (diff)
downloadlibgcrypt-f0ea5ed32081cfb734eae236a21a73f179c59e69.tar.gz
See ChangeLog: Sat Nov 13 17:44:23 CET 1999 Werner Koch
Diffstat (limited to 'cipher/twofish.c')
-rw-r--r--cipher/twofish.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cipher/twofish.c b/cipher/twofish.c
index 182f18c4..42eed8bf 100644
--- a/cipher/twofish.c
+++ b/cipher/twofish.c
@@ -27,8 +27,8 @@
#include <string.h> /* for memcmp() */
#include "types.h" /* for byte and u32 typedefs */
+#include "g10lib.h"
#include "util.h"
-#include "errors.h"
#include "dynload.h"
@@ -574,7 +574,7 @@ twofish_setkey (TWOFISH_context *ctx, const byte *key, const unsigned keylen)
/* Check key length. */
if( ( ( keylen - 16 ) | 16 ) != 16 )
- return G10ERR_WRONG_KEYLEN;
+ return GCRYERR_INV_KEYLEN;
/* Do self-test if necessary. */
if (!initialized) {
@@ -584,7 +584,7 @@ twofish_setkey (TWOFISH_context *ctx, const byte *key, const unsigned keylen)
fprintf(stderr, "%s\n", selftest_failed );
}
if( selftest_failed )
- return G10ERR_SELFTEST_FAILED;
+ return GCRYERR_SELFTEST;
/* Compute the first two words of the S vector. The magic numbers are
* the entries of the RS matrix, preprocessed through poly_to_exp. The