summaryrefslogtreecommitdiff
path: root/cipher/blowfish.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/blowfish.c
parentf36733037c144e888d4d7190eb123b375e265dd4 (diff)
downloadlibgcrypt-f0ea5ed32081cfb734eae236a21a73f179c59e69.tar.gz
See ChangeLog: Sat Nov 13 17:44:23 CET 1999 Werner Koch
Diffstat (limited to 'cipher/blowfish.c')
-rw-r--r--cipher/blowfish.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cipher/blowfish.c b/cipher/blowfish.c
index 5a829d41..e7f047ff 100644
--- a/cipher/blowfish.c
+++ b/cipher/blowfish.c
@@ -35,7 +35,7 @@
#include <string.h>
#include <assert.h>
#include "types.h"
-#include "errors.h"
+#include "g10lib.h"
#include "blowfish.h"
#include "dynload.h"
@@ -498,7 +498,7 @@ bf_setkey( BLOWFISH_context *c, byte *key, unsigned keylen )
fprintf(stderr,"%s\n", selftest_failed );
}
if( selftest_failed )
- return G10ERR_SELFTEST_FAILED;
+ return GCRYERR_SELFTEST;
for(i=0; i < BLOWFISH_ROUNDS+2; i++ )
c->p[i] = ps[i];
@@ -559,7 +559,7 @@ bf_setkey( BLOWFISH_context *c, byte *key, unsigned keylen )
for( j=i+1; j < 256; j++) {
if( (c->s0[i] == c->s0[j]) || (c->s1[i] == c->s1[j]) ||
(c->s2[i] == c->s2[j]) || (c->s3[i] == c->s3[j]) )
- return G10ERR_WEAK_KEY;
+ return GCRYERR_WEAK_KEY;
}
}