projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New generic exponentation code. Includes sliding-window simultaneous
[u/mdw/catacomb]
/
blowfish.h
diff --git
a/blowfish.h
b/blowfish.h
index
9f4fb56
..
c8c0444
100644
(file)
--- a/
blowfish.h
+++ b/
blowfish.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-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
*
*
* The Blowfish block cipher
*
@@
-30,6
+30,12
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: blowfish.h,v $
/*----- 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.
*
* Revision 1.1 1999/09/03 08:41:11 mdw
* Initial import.
*
@@
-44,8
+50,8
@@
* has a particularly heavyweight key schedule.
*/
* has a particularly heavyweight key schedule.
*/
-#ifndef BLOWFISH_H
-#define BLOWFISH_H
+#ifndef
CATACOMB_
BLOWFISH_H
+#define
CATACOMB_
BLOWFISH_H
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
extern "C" {
@@
-60,9
+66,11
@@
/*----- Magical numbers ---------------------------------------------------*/
#define BLOWFISH_BLKSZ 8
/*----- Magical numbers ---------------------------------------------------*/
#define BLOWFISH_BLKSZ 8
-#define BLOWFISH_KEYSZ
0
+#define BLOWFISH_KEYSZ
32
#define BLOWFISH_CLASS (N, B, 64)
#define BLOWFISH_CLASS (N, B, 64)
+extern const octet blowfish_keysz[];
+
/*----- Data structures ---------------------------------------------------*/
typedef struct blowfish_ctx {
/*----- Data structures ---------------------------------------------------*/
typedef struct blowfish_ctx {