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
Dmitry Baryshkov
nettle
Commits
2d429c0f
Commit
2d429c0f
authored
26 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Constified
Rev: src/symmetric/include/des.h:1.4
parent
fb2c4cd1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/des.h
+6
-5
6 additions, 5 deletions
include/des.h
with
6 additions
and
5 deletions
include/des.h
+
6
−
5
View file @
2d429c0f
/*
/*
* des - fast & portable DES encryption & decryption.
* des - fast & portable DES encryption & decryption.
* Copyright (C) 1992 Dana L. How
* Copyright (C) 1992 Dana L. How
* Please see the file `README' for the complete copyright notice.
* Please see the file `../lib/descore.README' for the complete copyright
* notice.
*
*
* Slightly edited by Niels Möller, 1997
* Slightly edited by Niels Möller, 1997
*/
*/
...
@@ -22,9 +23,9 @@ RCSID2(desCore_hRcs, "$Id$");
...
@@ -22,9 +23,9 @@ RCSID2(desCore_hRcs, "$Id$");
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
,
const
UINT8
*
s
);
typedef
void
DesFunc
(
UINT8
*
d
,
const
UINT32
*
r
,
const
UINT8
*
s
);
extern
int
DesMethod
(
UINT32
*
method
,
UINT8
*
k
);
extern
int
DesMethod
(
UINT32
*
method
,
const
UINT8
*
k
);
extern
void
DesQuickInit
(
void
);
extern
void
DesQuickInit
(
void
);
extern
void
DesQuickDone
(
void
);
extern
void
DesQuickDone
(
void
);
extern
DesFunc
DesQuickCoreEncrypt
;
extern
DesFunc
DesQuickCoreEncrypt
;
...
@@ -37,7 +38,7 @@ extern DesFunc DesSmallCoreDecrypt;
...
@@ -37,7 +38,7 @@ extern DesFunc DesSmallCoreDecrypt;
extern
DesFunc
DesSmallFipsDecrypt
;
extern
DesFunc
DesSmallFipsDecrypt
;
extern
DesFunc
*
DesCryptFuncs
[
2
];
extern
DesFunc
*
DesCryptFuncs
[
2
];
extern
int
des_key_sched
(
UINT8
*
k
,
UINT32
*
s
);
extern
int
des_key_sched
(
const
UINT8
*
k
,
UINT32
*
s
);
extern
int
des_ecb_encrypt
(
UINT8
*
s
,
UINT8
*
d
,
UINT32
*
r
,
int
e
);
extern
int
des_ecb_encrypt
(
const
UINT8
*
s
,
UINT8
*
d
,
const
UINT32
*
r
,
int
e
);
#endif
/* DES_H_INCLUDED */
#endif
/* DES_H_INCLUDED */
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