X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..3e248c3b5b309bc03eb5f70762d3f5671d51f996:/symm/blowfish.c diff --git a/symm/blowfish.c b/symm/blowfish.c index 4bfb84d..c4903c1 100644 --- a/symm/blowfish.c +++ b/symm/blowfish.c @@ -30,14 +30,13 @@ #include #include "blowfish.h" -#include "blowfish-tab.h" #include "blkc.h" #include "gcipher.h" #include "paranoia.h" /*----- Global variables --------------------------------------------------*/ -static const blowfish_ctx ikey = BLOWFISH_IKEY; +extern const blowfish_ctx blowfish_ikey; const octet blowfish_keysz[] = { KSZ_RANGE, BLOWFISH_KEYSZ, 1, 56, 1 }; @@ -119,7 +118,7 @@ void blowfish_init(blowfish_ctx *k, const void *buf, size_t sz) /* --- Copy the initial value over --- */ - memcpy(k, &ikey, sizeof(ikey)); + *k = blowfish_ikey; /* --- Initialize the %$P$% array --- */