state.h (359B)
1 struct param { 2 char *calgo; /* compression algorithm */ 3 char *ealgo; /* encryption algorithm */ 4 unsigned char key[KEYSIZE]; /* secret key */ 5 int keyloaded; /* 1 if key is loaded, 0 otherwise */ 6 uint32_t seed; /* XOR-ed with initial state of chunker */ 7 }; 8 9 extern int writestate(int, struct param *); 10 extern int readstate(int fd, struct param *);