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 contents encryption mode of a valid encryption policy

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

Type:u8

Parameter:

TypeParameterName
const union fscrypt_policy *policy
105  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.
106  Return contents_encryption_mode
107  Case version == New policy version with HKDF and key verification (recommended).
108  Return contents_encryption_mode
110  BUG()
Caller
NameDescribe
select_encryption_mode