1 /*
2  * ecryptfs_format.h: helper functions for the encrypted key type
3  *
4  * Copyright (C) 2006 International Business Machines Corp.
5  * Copyright (C) 2010 Politecnico di Torino, Italy
6  *                    TORSEC group -- http://security.polito.it
7  *
8  * Authors:
9  * Michael A. Halcrow <mahalcro@us.ibm.com>
10  * Tyler Hicks <tyhicks@ou.edu>
11  * Roberto Sassu <roberto.sassu@polito.it>
12  *
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation, version 2 of the License.
16  */
17 
18 #ifndef __KEYS_ECRYPTFS_H
19 #define __KEYS_ECRYPTFS_H
20 
21 #include <linux/ecryptfs.h>
22 
23 #define PGP_DIGEST_ALGO_SHA512   10
24 
25 u8 *ecryptfs_get_auth_tok_key(struct ecryptfs_auth_tok *auth_tok);
26 void ecryptfs_get_versions(int *major, int *minor, int *file_version);
27 int ecryptfs_fill_auth_tok(struct ecryptfs_auth_tok *auth_tok,
28 			   const char *key_desc);
29 
30 #endif /* __KEYS_ECRYPTFS_H */
31