Commit b861d199 authored by Niels Möller's avatar Niels Möller
Browse files

Constified.

Rev: src/symmetric/desCode.h:1.3
Rev: src/symmetric/include/des.h:1.3
parent 646d42c3
......@@ -345,7 +345,7 @@ extern UINT32 des_keymap[], des_bigmap[];
void \
NAME(REGISTER BYTE *D, \
REGISTER UINT32 *r, \
REGISTER UINT8 *s) \
REGISTER const UINT8 *s) \
{ \
register UINT32 x, y, z; \
\
......@@ -381,7 +381,7 @@ NAME(REGISTER BYTE *D, \
void \
NAME(REGISTER BYTE *D, \
REGISTER UINT32 *r, \
REGISTER UINT8 *s) \
REGISTER const UINT8 *s) \
{ \
register UINT32 x, y, z; \
\
......
......@@ -18,9 +18,11 @@ RCSID2(desCore_hRcs, "$Id$");
#define DES_BLOCKSIZE 8
#define DES_EXPANDED_KEYLEN 32
/* FIXME: typedef on arrays is ugly. */
typedef UINT8 DesData[DES_BLOCKSIZE];
typedef UINT32 DesKeys[DES_EXPANDED_KEYLEN];
typedef void DesFunc(UINT8 *d, UINT32 *r, UINT8 *s);
typedef void DesFunc(UINT8 *d, UINT32 *r, const UINT8 *s);
extern int DesMethod(UINT32 *method, UINT8 *k);
extern void DesQuickInit(void);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment