File: defines.h

package info (click to toggle)
bcrypt 1.1-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 244 kB
  • ctags: 212
  • sloc: ansic: 1,370; makefile: 82
file content (27 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (5)
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
typedef struct _BCoptions {
  unsigned char remove;
  unsigned char standardout;
  unsigned char compression;
  unsigned char type;
  uLong origsize;
  unsigned char securedelete;
} BCoptions;

#define ENCRYPT 0
#define DECRYPT 1

#define endianBig ((unsigned char) 0x45)
#define endianLittle ((unsigned char) 0x54)

typedef unsigned int uInt32;

#ifdef WIN32 /* Win32 doesn't have random() or lstat */
#define random() rand()
#define initstate(x,y,z) srand(x)
#define lstat(x,y) stat(x,y)
#endif

#ifndef S_ISREG
#define S_ISREG(x) ( ((x)&S_IFMT)==S_IFREG )
#endif