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