1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * ecryptfs_format.h: helper functions for the encrypted key type 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright (C) 2006 International Business Machines Corp. 6*4882a593Smuzhiyun * Copyright (C) 2010 Politecnico di Torino, Italy 7*4882a593Smuzhiyun * TORSEC group -- https://security.polito.it 8*4882a593Smuzhiyun * 9*4882a593Smuzhiyun * Authors: 10*4882a593Smuzhiyun * Michael A. Halcrow <mahalcro@us.ibm.com> 11*4882a593Smuzhiyun * Tyler Hicks <tyhicks@ou.edu> 12*4882a593Smuzhiyun * Roberto Sassu <roberto.sassu@polito.it> 13*4882a593Smuzhiyun */ 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun #ifndef __KEYS_ECRYPTFS_H 16*4882a593Smuzhiyun #define __KEYS_ECRYPTFS_H 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun #include <linux/ecryptfs.h> 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun #define PGP_DIGEST_ALGO_SHA512 10 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun u8 *ecryptfs_get_auth_tok_key(struct ecryptfs_auth_tok *auth_tok); 23*4882a593Smuzhiyun void ecryptfs_get_versions(int *major, int *minor, int *file_version); 24*4882a593Smuzhiyun int ecryptfs_fill_auth_tok(struct ecryptfs_auth_tok *auth_tok, 25*4882a593Smuzhiyun const char *key_desc); 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun #endif /* __KEYS_ECRYPTFS_H */ 28