Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wim Lewis
nettle
Commits
80f8059e
Commit
80f8059e
authored
26 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
desCode.h
+8
-8
8 additions, 8 deletions
desCode.h
include/des.h
+3
-1
3 additions, 1 deletion
include/des.h
with
11 additions
and
9 deletions
desCode.h
+
8
−
8
View file @
80f8059e
...
@@ -343,11 +343,11 @@ extern UINT32 des_keymap[], des_bigmap[];
...
@@ -343,11 +343,11 @@ extern UINT32 des_keymap[], des_bigmap[];
#define ENCRYPT(NAME, TEMP, LOAD, KEYMAP, SAVE) \
#define ENCRYPT(NAME, TEMP, LOAD, KEYMAP, SAVE) \
\
\
void \
void \
NAME(REGISTER BYTE *D,
\
NAME(REGISTER BYTE *D,
\
REGISTER UINT32 *r,
\
REGISTER UINT32 *r,
\
REGISTER UINT8 *s)
\
REGISTER
const
UINT8 *s)
\
{ \
{ \
register UINT32 x, y, z; \
register UINT32 x, y, z;
\
\
\
/* declare temps & load data */
\
/* declare temps & load data */
\
TEMP(LOAD); \
TEMP(LOAD); \
...
@@ -379,11 +379,11 @@ NAME(REGISTER BYTE *D, \
...
@@ -379,11 +379,11 @@ NAME(REGISTER BYTE *D, \
#define DECRYPT(NAME, TEMP, LOAD, KEYMAP, SAVE) \
#define DECRYPT(NAME, TEMP, LOAD, KEYMAP, SAVE) \
\
\
void \
void \
NAME(REGISTER BYTE *D,
\
NAME(REGISTER BYTE *D,
\
REGISTER UINT32 *r,
\
REGISTER UINT32 *r,
\
REGISTER UINT8 *s)
\
REGISTER
const
UINT8 *s)
\
{ \
{ \
register UINT32 x, y, z;
\
register UINT32 x, y, z;
\
\
\
/* declare temps & load data */
\
/* declare temps & load data */
\
TEMP(LOAD); \
TEMP(LOAD); \
...
...
This diff is collapsed.
Click to expand it.
include/des.h
+
3
−
1
View file @
80f8059e
...
@@ -18,9 +18,11 @@ RCSID2(desCore_hRcs, "$Id$");
...
@@ -18,9 +18,11 @@ RCSID2(desCore_hRcs, "$Id$");
#define DES_BLOCKSIZE 8
#define DES_BLOCKSIZE 8
#define DES_EXPANDED_KEYLEN 32
#define DES_EXPANDED_KEYLEN 32
/* FIXME: typedef on arrays is ugly. */
typedef
UINT8
DesData
[
DES_BLOCKSIZE
];
typedef
UINT8
DesData
[
DES_BLOCKSIZE
];
typedef
UINT32
DesKeys
[
DES_EXPANDED_KEYLEN
];
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
int
DesMethod
(
UINT32
*
method
,
UINT8
*
k
);
extern
void
DesQuickInit
(
void
);
extern
void
DesQuickInit
(
void
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment