Annotation of src/usr.bin/tcfs/tcfsdefines.h, Revision 1.4
1.4 ! fgsch 1: /* $OpenBSD$ */
! 2:
1.1 provos 3: /*
4: * Transparent Cryptographic File System (TCFS) for NetBSD
5: * Author and mantainer: Luigi Catuogno [luicat@tcfs.unisa.it]
6: *
7: * references: http://tcfs.dia.unisa.it
8: * tcfs-bsd@tcfs.unisa.it
9: */
10:
11: /*
12: * Base utility set v0.1
13: */
14:
15: #ifndef _TCFSDEFINES_H_
16: #define _TCFSDEFINES_H_
17:
18: #define UUKEYSIZE ((KEYSIZE / 3 + (KEYSIZE % 3 ? 1 : 0)) * 4)
1.2 provos 19: #define GKEYSIZE (KEYSIZE + KEYSIZE/8)
20: #define UUGKEYSIZE ((GKEYSIZE / 3 + (GKEYSIZE % 3 ? 1 : 0)) * 4)
1.1 provos 21: #define TRUE 1
22: #define FALSE 0
23: #define ONE 1 /* decrement key counter by 1 */
24: #define ALL 0 /* decrement key counter to 0 */
25: #define SET 1 /* set permanent flag */
26: #define UNSET 0 /* unset permanent flag */
27: #define NONE 2 /* no one of the previous */
28:
29: #define USERKEY 0
30: #define GROUPKEY 1
31:
32: typedef struct {
33: u_int32_t flag;
34: } tcfs_flags;
35:
36: #endif /* _TCFSDEFINES_H_ */