File: des.h

package info (click to toggle)
spplus 1.0-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,060 kB
  • ctags: 250
  • sloc: sh: 8,331; ansic: 2,004; makefile: 64; php: 50; awk: 43
file content (50 lines) | stat: -rw-r--r-- 2,102 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* NOM........  des.h						   */
/* OBJET......  DES Encryption/Decryption */
/* PROJET.....	 SFP V.1                   */
/* REFERENCES.                            */
/* VERSION....  1.0                       */
/* HISTORIQUE.  								   */
/**/




/*--------------------------------------------------------------
 *	    Declaration de Fonctions
 *--------------------------------------------------------------
 */
void	DesEncrypt(		/* DES Encryption */
			unsigned char*,			/* Entry (8 bytes, Clear Data) */
			unsigned char*,			/* Key (8 bytes) */
			unsigned char*);			/* Output (8 bytes, Encrypted Entry) */
void	DesDecrypt(		/* DES Decryption */
			unsigned char*,			/* Entry (8 bytes, Encrypted Entry) */
			unsigned char*,			/* Key (8 bytes) */
			unsigned char*);			/* Output (8 bytes, Clear Data) */
void	TDesEncrypt(	/* Triple DES Encryption */
			unsigned char*,			/* Entry (8 bytes, Clear Data) */
			unsigned char*,			/* Key (16 bytes) */
			unsigned char*);			/* Output (8 bytes, Encrypted Entry) */
void	TDesDecrypt(	/* Triple DES Decryption */
			unsigned char*,			/* Entry (8 bytes, Encrypted Entry) */
			unsigned char*,			/* Key (16 bytes) */
			unsigned char*);			/* Output (8 bytes, Clear Data) */
void	EncryptCBC(		/* DES CBC Encryption */
			unsigned char*,			/* Key (8 bytes) */
			unsigned char*,			/* Data to Encrypt */
			int);				/* Data Lebgth (8*x) */
void	DecryptCBC(		/* DES CBC Decryption */
			unsigned char*,			/* Key (8 bytes) */
			unsigned char*,			/* Data to Decrypt */
			int);				/* Data Lebgth (8*x) */
void	TDesEncryptCBC(	/* Triple DES CBC Encryption */
			unsigned char*,				/* Key (8 bytes) */
			unsigned char*,				/* Data to Encrypt */
			int,					/* Data Lebgth (8*x) */
			unsigned char*);				/* Initial Vector */
void	TDesDecryptCBC(	/* Triple DES CBC Decryption */
			unsigned char*,				/* Key (8 bytes) */
			unsigned char*,				/* Data to Decrypt */
			int,					/* Data Lebgth (8*x) */
			unsigned char*);				/* Initial Vector */
void GenKs(unsigned char*);		/* Reconstitution of Ks (8 bytes) */