blob: 7a800d3a511d5a29dce2b3065a5502480095e91d [file] [log] [blame]
Zhen Kongee7bdc62019-03-14 10:55:19 -07001/* 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
12struct 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
19int pfk_key_size_to_key_type(size_t key_size,
20 enum ice_crpto_key_size *key_size_type);
21
22bool pfe_is_inode_filesystem_type(const struct inode *inode,
23 const char *fs_type);
24
25char *inode_to_filename(const struct inode *inode);
26
27#endif /* _PFK_INTERNAL_H_ */