函数逻辑报告

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

函数名称:fscrypt_valid_enc_modes

函数原型:static inline bool fscrypt_valid_enc_modes(unsigned int contents_mode, unsigned int filenames_mode)

返回类型:bool

参数:

类型参数名称
unsigned intcontents_mode
unsigned intfilenames_mode
212  如果contents_mode恒等于FSCRYPT_MODE_AES_128_CBCfilenames_mode恒等于FSCRYPT_MODE_AES_128_CTS则返回:true
216  如果contents_mode恒等于Encryption algorithms filenames_mode恒等于FSCRYPT_MODE_AES_256_CTS则返回:true
220  如果contents_mode恒等于FSCRYPT_MODE_ADIANTUMfilenames_mode恒等于FSCRYPT_MODE_ADIANTUM则返回:true
224  返回:false
调用者
名称描述
fscrypt_supported_policy
fscrypt_supported_policyscrypt_supported_policy - check whether an encryption policy is supported* Given an encryption policy, check whether all its encryption modes and other* settings are supported by this kernel