X-Git-Url: https://git.distorted.org.uk/~mdw/become/blobdiff_plain/a37d956f675449e7dc2911b36da156b4f24e1931..c758e6541ca05409b178dd9629e9337494c49890:/src/blowfish.h diff --git a/src/blowfish.h b/src/blowfish.h index e291206..d008988 100644 --- a/src/blowfish.h +++ b/src/blowfish.h @@ -1,10 +1,10 @@ /* -*-c-*- * - * $Id: blowfish.h,v 1.3 1997/08/07 09:43:20 mdw Exp $ + * $Id: blowfish.h,v 1.5 1998/01/12 16:45:45 mdw Exp $ * * Blowfish encryption routines * - * (c) 1997 Mark Wooding + * (c) 1998 Mark Wooding */ /*----- Licensing notice --------------------------------------------------* @@ -29,6 +29,17 @@ /*----- Revision history --------------------------------------------------* * * $Log: blowfish.h,v $ + * Revision 1.5 1998/01/12 16:45:45 mdw + * Fix copyright date. + * + * Revision 1.4 1997/09/26 09:14:57 mdw + * Merged blowfish branch into trunk. + * + * Revision 1.3.2.1 1997/09/26 09:07:59 mdw + * Use the Blowfish encryption algorithm instead of IDEA. This is partly + * because I prefer Blowfish (without any particularly strong evidence) but + * mainly because IDEA is patented and Blowfish isn't. + * * Revision 1.3 1997/08/07 09:43:20 mdw * Fix address of the FSF. * @@ -47,6 +58,12 @@ extern "C" { #endif +/*----- Required headers --------------------------------------------------*/ + +#ifndef CONFIG_H +# include "config.h" +#endif + /*----- Type definitions --------------------------------------------------*/ /* --- A blowfish expanded key --- */ @@ -59,6 +76,10 @@ typedef struct blowfish_key { uint_32 s3[256]; } blowfish_key; +/* --- Size of a blowfish block --- */ + +#define BLOWFISH_BLKSIZE (8u) + /*----- Functions provided ------------------------------------------------*/ /* --- @blowfish_encrypt@ --- *