Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
2d429c0f
Commit
2d429c0f
authored
Dec 31, 1998
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Constified
Rev: src/symmetric/include/des.h:1.4
parent
fb2c4cd1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
include/des.h
include/des.h
+6
-5
No files found.
include/des.h
View file @
2d429c0f
/*
* des - fast & portable DES encryption & decryption.
* 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
*/
...
...
@@ -22,9 +23,9 @@ RCSID2(desCore_hRcs, "$Id$");
typedef
UINT8
DesData
[
DES_BLOCKSIZE
];
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
DesQuickDone
(
void
);
extern
DesFunc
DesQuickCoreEncrypt
;
...
...
@@ -37,7 +38,7 @@ extern DesFunc DesSmallCoreDecrypt;
extern
DesFunc
DesSmallFipsDecrypt
;
extern
DesFunc
*
DesCryptFuncs
[
2
];
extern
int
des_key_sched
(
UINT8
*
k
,
UINT32
*
s
);
extern
int
des_ecb_encrypt
(
UINT8
*
s
,
UINT8
*
d
,
UINT32
*
r
,
int
e
);
extern
int
des_key_sched
(
const
UINT8
*
k
,
UINT32
*
s
);
extern
int
des_ecb_encrypt
(
const
UINT8
*
s
,
UINT8
*
d
,
const
UINT32
*
r
,
int
e
);
#endif
/* DES_H_INCLUDED */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment