Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\fscrypt_private.h Create Date:2022-07-28 20:23:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Return the size expected for the given fscrypt_policy based on its version* number, or 0 if the policy version is unrecognized.

Proto:static inline int fscrypt_policy_size(const union fscrypt_policy *policy)

Type:int

Parameter:

TypeParameterName
const union fscrypt_policy *policy
92  Case version == Legacy policy version; ad-hoc KDF and no key verification.* For new encrypted directories, use fscrypt_policy_v2 instead.* Careful: the .version field for this is actually 0, not 1.
93  Return size of v1
94  Case version == New policy version with HKDF and key verification (recommended).
95  Return size of v2
97  Return 0
Caller
NameDescribe
fscrypt_policies_equal
fscrypt_ioctl_set_policy
fscrypt_ioctl_get_policy_exExtended ioctl version; can get policies of any version