Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * ecryptfs_format.h: helper functions for the encrypted key type
0004  *
0005  * Copyright (C) 2006 International Business Machines Corp.
0006  * Copyright (C) 2010 Politecnico di Torino, Italy
0007  *                    TORSEC group -- https://security.polito.it
0008  *
0009  * Authors:
0010  * Michael A. Halcrow <mahalcro@us.ibm.com>
0011  * Tyler Hicks <tyhicks@ou.edu>
0012  * Roberto Sassu <roberto.sassu@polito.it>
0013  */
0014 
0015 #ifndef __KEYS_ECRYPTFS_H
0016 #define __KEYS_ECRYPTFS_H
0017 
0018 #include <linux/ecryptfs.h>
0019 
0020 #define PGP_DIGEST_ALGO_SHA512   10
0021 
0022 u8 *ecryptfs_get_auth_tok_key(struct ecryptfs_auth_tok *auth_tok);
0023 void ecryptfs_get_versions(int *major, int *minor, int *file_version);
0024 int ecryptfs_fill_auth_tok(struct ecryptfs_auth_tok *auth_tok,
0025                const char *key_desc);
0026 
0027 #endif /* __KEYS_ECRYPTFS_H */