Skip to content
Snippets Groups Projects
Commit 80f8059e 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 d643af70
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment