ecryptfs_format.h 973 B

12345678910111213141516171819202122232425262728293031
  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. #ifndef __KEYS_ECRYPTFS_H
  18. #define __KEYS_ECRYPTFS_H
  19. #include <linux/ecryptfs.h>
  20. #define PGP_DIGEST_ALGO_SHA512 10
  21. u8 *ecryptfs_get_auth_tok_key(struct ecryptfs_auth_tok *auth_tok);
  22. void ecryptfs_get_versions(int *major, int *minor, int *file_version);
  23. int ecryptfs_fill_auth_tok(struct ecryptfs_auth_tok *auth_tok,
  24. const char *key_desc);
  25. #endif /* __KEYS_ECRYPTFS_H */