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 flags (FSCRYPT_POLICY_FLAG*) of a valid encryption policy

Proto:static inline u8 fscrypt_policy_flags(const union fscrypt_policy *policy)

Type:u8

Parameter:

TypeParameterName
const union fscrypt_policy *policy
131  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.
132  Return flags
133  Case version == New policy version with HKDF and key verification (recommended).
134  Return flags
136  BUG()
Caller
NameDescribe
fscrypt_generate_iv
fscrypt_fname_encrypted_size