6 #define CAP_NR_DEVS 2 /* caphash and capuse */
10 #define CAP_NODE_SIZE 20
13 #define MAX_DIGEST_SIZE 20
16 char data[CAP_NODE_SIZE];
17 struct list_head list;
21 struct cap_node *head;
29 extern int cap_nr_devs;
30 extern int cap_node_size;
32 int cap_trim(struct cap_dev *);
33 ssize_t cap_write(struct file *, const char __user *, size_t, loff_t *);
34 char *cap_hash(char *plain_text, unsigned int plain_text_size, char *key, unsigned int key_size);
35 void hex_dump(unsigned char * buf, unsigned int len);