[BACK]Return to tcfsdefines.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / tcfs

Annotation of src/usr.bin/tcfs/tcfsdefines.h, Revision 1.3

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