函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\fscrypt_private.h Create Date:2022-07-29 10:56:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static inline int fscrypt_policy_size(const union fscrypt_policy *policy)

返回类型:int

参数:

类型参数名称
const union fscrypt_policy *policy
92  :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  返回:v1的长度
94  :version恒等于New policy version with HKDF and key verification (recommended).
95  返回:v2的长度
97  返回:0
调用者
名称描述
fscrypt_policies_equal
fscrypt_ioctl_set_policy
fscrypt_ioctl_get_policy_exExtended ioctl version; can get policies of any version
fscrypt_policies_equalscrypt_policies_equal - check whether two encryption policies are the same* Return: %true if equal, else %false