Zhen Kong | ee7bdc6 | 2019-03-14 10:55:19 -0700 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* |
| 3 | * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | #ifndef _PFK_INTERNAL_H_ |
| 7 | #define _PFK_INTERNAL_H_ |
| 8 | |
| 9 | #include <linux/types.h> |
| 10 | #include <crypto/ice.h> |
| 11 | |
| 12 | struct pfk_key_info { |
| 13 | const unsigned char *key; |
| 14 | const unsigned char *salt; |
| 15 | size_t key_size; |
| 16 | size_t salt_size; |
| 17 | }; |
| 18 | |
| 19 | int pfk_key_size_to_key_type(size_t key_size, |
| 20 | enum ice_crpto_key_size *key_size_type); |
| 21 | |
| 22 | bool pfe_is_inode_filesystem_type(const struct inode *inode, |
| 23 | const char *fs_type); |
| 24 | |
| 25 | char *inode_to_filename(const struct inode *inode); |
| 26 | |
| 27 | #endif /* _PFK_INTERNAL_H_ */ |