Skip to content
Snippets Groups Projects
Commit 66767701 authored by Niels Möller's avatar Niels Möller
Browse files

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
...@@ -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
......
/* 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 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment