函数逻辑报告 |
Source Code:fs\crypto\fname.c |
Create Date:2022-07-29 10:57:01 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:scrypt_setup_filename() - prepare to search a possibly encrypted directory*@dir: the directory that will be searched*@iname: the user-provided filename being searched for*@lookup: 1 if we're allowed to proceed without the key because it's* ->lookup() or
函数原型:int fscrypt_setup_filename(struct inode *dir, const struct qstr *iname, int lookup, struct fscrypt_name *fname)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct inode * | dir | |
| const struct qstr * | iname | |
| int | lookup | |
| struct fscrypt_name * | fname |
| 323 | memset(fname, 0, sizeof(structfscrypt_name)) |
| 326 | 如果非IS_ENCRYPTED(dir)或fscrypt_is_dot_dotdot(iname)则 |
| 335 | 如果fscrypt_has_encryption_key(dir)则 |
| 336 | 如果非fscrypt_fname_encrypted_size(dir, len, max_namelen, & len)则返回:负ENAMETOOLONG |
| 351 | 返回:0 |
| 355 | is_ciphertext_name = true |
| 361 | 如果name[0]恒等于'_'则 |
| 362 | 如果len不等于1加BASE64_CHARS(fscrypt_digested_name的长度)则返回:负ENOENT |
| 365 | digested等于1 |
| 366 | 否则 |
| 367 | 如果len大于BASE64_CHARS(FSCRYPT_FNAME_MAX_UNDIGESTED_SIZE)则返回:负ENOENT |
| 370 | digested等于0 |
| 382 | 如果ret小于0则 |
| 387 | 如果digested则 |
| 392 | 否则 |
| 396 | 返回:0 |
| 398 | errout : |
| 399 | 释放内存 |
| 400 | 返回:ret |
| 名称 | 描述 |
|---|---|
| __fscrypt_prepare_lookup |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |