Neeraj Soni | c692cb9 | 2018-04-18 17:20:22 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #ifndef _PFK_INTERNAL_H_ |
| 14 | #define _PFK_INTERNAL_H_ |
| 15 | |
| 16 | #include <linux/types.h> |
| 17 | #include <crypto/ice.h> |
| 18 | |
| 19 | struct pfk_key_info { |
| 20 | const unsigned char *key; |
| 21 | const unsigned char *salt; |
| 22 | size_t key_size; |
| 23 | size_t salt_size; |
| 24 | }; |
| 25 | |
| 26 | int pfk_key_size_to_key_type(size_t key_size, |
| 27 | enum ice_crpto_key_size *key_size_type); |
| 28 | |
| 29 | bool pfe_is_inode_filesystem_type(const struct inode *inode, |
| 30 | const char *fs_type); |
| 31 | |
| 32 | char *inode_to_filename(const struct inode *inode); |
| 33 | |
| 34 | #endif /* _PFK_INTERNAL_H_ */ |