Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
pikelang
pike
Commits
66767701
Commit
66767701
authored
28 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Merged with the desCore.h include file.
Rev: src/modules/_Crypto/include/des.h:1.2
parent
6e79af0f
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
.gitattributes
+1
-0
1 addition, 0 deletions
.gitattributes
src/modules/_Crypto/include/des.h
+33
-2
33 additions, 2 deletions
src/modules/_Crypto/include/des.h
with
34 additions
and
2 deletions
.gitattributes
+
1
−
0
View file @
66767701
...
@@ -52,6 +52,7 @@ testfont binary
...
@@ -52,6 +52,7 @@ testfont binary
/src/modules/_Crypto/des.pike foreign_ident
/src/modules/_Crypto/des.pike foreign_ident
/src/modules/_Crypto/idea.c foreign_ident
/src/modules/_Crypto/idea.c foreign_ident
/src/modules/_Crypto/idea.pike foreign_ident
/src/modules/_Crypto/idea.pike foreign_ident
/src/modules/_Crypto/include/des.h foreign_ident
/src/modules/_Crypto/invert.c foreign_ident
/src/modules/_Crypto/invert.c foreign_ident
/src/modules/_Crypto/lib/descore/Makefile foreign_ident
/src/modules/_Crypto/lib/descore/Makefile foreign_ident
/src/modules/_Crypto/lib/descore/README foreign_ident
/src/modules/_Crypto/lib/descore/README foreign_ident
...
...
This diff is collapsed.
Click to expand it.
src/modules/_Crypto/include/des.h
+
33
−
2
View file @
66767701
/* des.h */
/*
* des - fast & portable DES encryption & decryption.
* Copyright (C) 1992 Dana L. How
* Please see the file `README' for the complete copyright notice.
*
* Slightly edited by Niels Möller, 1997
*/
#ifndef DES_H_INCLUDED
#ifndef DES_H_INCLUDED
#define DES_H_INCLUDED
#define DES_H_INCLUDED
#include
"crypto_types.h"
#if 0
#include "RCSID.h"
RCSID(desCore_hRcs, "$Id: des.h,v 1.2 1997/02/12 06:16:26 nisse Exp $");
#endif
#define DES_KEYSIZE 8
#define DES_KEYSIZE 8
#define DES_BLOCKSIZE 8
#define DES_BLOCKSIZE 8
#define DES_EXPANDED_KEYLEN 32
#define DES_EXPANDED_KEYLEN 32
#include
"../lib/descore/desCore.h"
typedef
unsigned
INT8
DesData
[
DES_BLOCKSIZE
];
typedef
unsigned
INT32
DesKeys
[
DES_EXPANDED_KEYLEN
];
typedef
void
DesFunc
(
unsigned
INT8
*
d
,
unsigned
INT32
*
r
,
unsigned
INT8
*
s
);
extern
int
DesMethod
(
unsigned
INT32
*
method
,
unsigned
INT8
*
k
);
extern
void
DesQuickInit
(
void
);
extern
void
DesQuickDone
(
void
);
extern
DesFunc
DesQuickCoreEncrypt
;
extern
DesFunc
DesQuickFipsEncrypt
;
extern
DesFunc
DesQuickCoreDecrypt
;
extern
DesFunc
DesQuickFipsDecrypt
;
extern
DesFunc
DesSmallCoreEncrypt
;
extern
DesFunc
DesSmallFipsEncrypt
;
extern
DesFunc
DesSmallCoreDecrypt
;
extern
DesFunc
DesSmallFipsDecrypt
;
extern
DesFunc
*
DesCryptFuncs
[
2
];
extern
int
des_key_sched
(
INT8
*
k
,
INT32
*
s
);
extern
int
des_ecb_encrypt
(
INT8
*
s
,
INT8
*
d
,
INT32
*
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