2 * ecryptfs_format.h: helper functions for the encrypted key type
4 * Copyright (C) 2006 International Business Machines Corp.
5 * Copyright (C) 2010 Politecnico di Torino, Italy
6 * TORSEC group -- http://security.polito.it
9 * Michael A. Halcrow <mahalcro@us.ibm.com>
10 * Tyler Hicks <tyhicks@ou.edu>
11 * Roberto Sassu <roberto.sassu@polito.it>
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.
18 #ifndef __KEYS_ECRYPTFS_H
19 #define __KEYS_ECRYPTFS_H
21 #include <linux/ecryptfs.h>
23 #define PGP_DIGEST_ALGO_SHA512 10
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
);
30 #endif /* __KEYS_ECRYPTFS_H */