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