函数逻辑报告 |
Source Code:fs\crypto\keyring.c |
Create Date:2022-07-29 10:57:22 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Add a master encryption key to the filesystem, causing all files which were* encrypted with it to appear "unlocked" (decrypted) when accessed.* When adding a key for use by v1 encryption policies, this ioctl is
函数原型:int fscrypt_ioctl_add_key(struct file *filp, void __user *_uarg)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | filp | |
void __user * | _uarg |
500 | 如果copy_from_user( & arg, uarg, arg的长度)则返回:负EFAULT |
503 | 如果非valid_key_spec( & key_spec)则返回:负EINVAL |
506 | 如果raw_size小于FSCRYPT_MIN_KEY_SIZE或raw_size大于FSCRYPT_MAX_KEY_SIZE则返回:负EINVAL |
516 | 如果copy_from_user(For v1 policy keys: the raw key. Wiped for v2 policy keys. , raw, Size of the raw key in bytes. Set even if ->raw isn't set. )则转到:out_wipe_secret |
532 | 如果err则转到:out_wipe_secret |
546 | 如果err则转到:out_wipe_secret |
553 | 退出 |
554 | 默认 |
560 | err等于add_master_key(sb, & secret, & key_spec) |
561 | out_wipe_secret : |
562 | wipe_master_key_secret( & secret) |
563 | 返回:err |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |