X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/d03ab969116fe715d569304c1c474749b2f64529..110c1845e5ec7e842a545b0cd0f640be70d01d55:/blowfish.h diff --git a/blowfish.h b/blowfish.h index 9f4fb56..c8c0444 100644 --- a/blowfish.h +++ b/blowfish.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: blowfish.h,v 1.1 1999/09/03 08:41:11 mdw Exp $ + * $Id: blowfish.h,v 1.3 2000/06/17 10:48:13 mdw Exp $ * * The Blowfish block cipher * @@ -30,6 +30,12 @@ /*----- Revision history --------------------------------------------------* * * $Log: blowfish.h,v $ + * Revision 1.3 2000/06/17 10:48:13 mdw + * Support new key size interface. + * + * Revision 1.2 1999/12/10 23:29:48 mdw + * Change header file guard names. + * * Revision 1.1 1999/09/03 08:41:11 mdw * Initial import. * @@ -44,8 +50,8 @@ * has a particularly heavyweight key schedule. */ -#ifndef BLOWFISH_H -#define BLOWFISH_H +#ifndef CATACOMB_BLOWFISH_H +#define CATACOMB_BLOWFISH_H #ifdef __cplusplus extern "C" { @@ -60,9 +66,11 @@ /*----- Magical numbers ---------------------------------------------------*/ #define BLOWFISH_BLKSZ 8 -#define BLOWFISH_KEYSZ 0 +#define BLOWFISH_KEYSZ 32 #define BLOWFISH_CLASS (N, B, 64) +extern const octet blowfish_keysz[]; + /*----- Data structures ---------------------------------------------------*/ typedef struct blowfish_ctx {