4576907 [rkeene@sledge /home/rkeene/devel/dact]$ cat -n ciphers.h
 1 /*
 2  * Copyright (C) 2001, 2002, and 2003  Roy Keene
 3  *
 4  * This program is free software; you can redistribute it and/or
 5  * modify it under the terms of the GNU General Public License
 6  * as published by the Free Software Foundation; either version 2
 7  * of the License, or (at your option) any later version.
 8  *
 9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17  *
18  *      email: dact@rkeene.org
19  */
20 
21 #ifndef _CIPHERS_H
22 #define _CIPHERS_H
23 #include "cipher_chaos.h"
24 #include "cipher_sub.h"
25 #include "cipher_serpent.h"
26 #include "cipher_psub.h"
27 
28 
29 #ifndef CIPHER_COUNT
30 #define CIPHER_COUNT 5
31 #endif
32 
33 #ifdef __DACT_C
34 int (*(ciphers[CIPHER_COUNT]))()={
35     cipher_chaos,
36     cipher_sub,
37 #ifdef HAVE_LIBMCRYPT
38     cipher_serpent,
39 #else
40     NULL,
41 #endif
42     cipher_psub,
43     NULL
44 };
45 
46 char *ciphers_name[CIPHER_COUNT]={      /* These must be lower-cased */
47     "chaos",
48     "subst",
49 #ifdef HAVE_LIBMCRYPT
50     "serpent",
51 #else
52     NULL,
53 #endif
54     "psubst",
55     NULL
56 };
57 
58 #else
59 extern int (*(ciphers[CIPHER_COUNT]))();
60 extern char *ciphers_name[CIPHER_COUNT];
61 #endif
62 
63 #endif
4576908 [rkeene@sledge /home/rkeene/devel/dact]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2004-04-04 07:01:49