/[mcrypt]/module-skipjack/lib/libdefs.h
ViewVC logotype

Annotation of /module-skipjack/lib/libdefs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Sat Oct 7 18:27:38 2000 UTC (23 years, 6 months ago) by nmav
Branch: MAIN
CVS Tags: libmcrypt_2_4_16, HEAD
Changes since 1.1: +38 -0 lines
File MIME type: text/plain
added support for local swap functions (if available)

1 nmav 1.1 /* MAX_THREADS removed by Steve Underwood 1999/12/10 */
2    
3     #ifdef HAVE_CONFIG_H
4     # include <config.h>
5     #endif
6    
7 nmav 1.2 #ifdef HAVE_BYTESWAP_H
8     # include <byteswap.h>
9     #endif
10    
11     #ifdef HAVE_SYS_ENDIAN_H
12     # include <sys/endian.h>
13     #endif
14    
15     #ifdef HAVE_MACHINE_ENDIAN_H
16     # include <machine/endian.h>
17     #endif
18    
19     #ifdef HAVE_ENDIAN_H
20     # include <endian.h>
21     #endif
22    
23    
24     #ifdef USE_LTDL
25     # include "../libltdl/ltdl.h"
26     #else
27     # ifdef HAVE_DLFCN_H
28     # include <dlfcn.h>
29     # endif
30     # define lt_dlexit() 0
31     # define lt_dlinit() 0
32     # define lt_dlclose(x) dlclose(x)
33     # define lt_dlsym(x,y) dlsym(x,y)
34     # define lt_dlhandle void*
35     # define lt_ptr_t void*
36     # define lt_dlerror dlerror
37     #endif
38    
39 nmav 1.1 #ifdef STDC_HEADERS
40     # include <string.h>
41     # include <stdlib.h>
42     # include <stdio.h>
43     #endif
44    
45 nmav 1.2 #ifdef HAVE_SYS_TYPES_H
46     # include <sys/types.h>
47     #endif
48    
49 nmav 1.1 #ifdef HAVE_DIRENT_H
50     # include <dirent.h>
51     #endif
52    
53     #ifdef HAVE_STRINGS_H
54     # include <strings.h>
55     #endif
56    
57     #ifdef HAVE_UNISTD_H
58     # include <unistd.h>
59     #endif
60    
61     #ifdef HAVE_LIBPTHREAD
62     # include <pthread.h>
63     #endif
64    
65     #if SIZEOF_UNSIGNED_LONG_INT == 4
66     typedef unsigned long word32;
67     typedef signed long sword32;
68     #elif SIZEOF_UNSIGNED_INT == 4
69     typedef unsigned int word32;
70     typedef signed int sword32;
71     #else
72     # error "Cannot find a 32 bit integer in your system, sorry."
73     #endif
74    
75     #if SIZEOF_UNSIGNED_INT == 2
76     typedef unsigned int word16;
77     #elif SIZEOF_UNSIGNED_SHORT_INT == 2
78     typedef unsigned short word16;
79     #else
80     # error "Cannot find a 16 bit integer in your system, sorry."
81     #endif
82    
83     #if SIZEOF_UNSIGNED_CHAR == 1
84     typedef unsigned char word8;
85     #else
86     # error "Cannot find an 8 bit char in your system, sorry."
87     #endif
88    
89     #ifndef HAVE_MEMMOVE
90     # ifdef HAVE_BCOPY
91     # define memmove(d, s, n) bcopy ((s), (d), (n))
92     # else
93     # error "Neither memmove nor bcopy exists on your system."
94     # endif
95     #endif
96    
97 nmav 1.2
98     #define MAX_KEY_LEN 513 /* for gen_key */

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26