函数逻辑报告 |
Source Code:security\keys\keyctl_pkey.c |
Create Date:2022-07-27 20:02:01 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Get parameters from userspace. Callers must always call the free function* on params, even if an error is returned.
函数原型:static int keyctl_pkey_params_get_2(const struct keyctl_pkey_params __user *_params, const char __user *_info, int op, struct kernel_pkey_params *params)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const struct keyctl_pkey_params __user * | _params | |
| const char __user * | _info | |
| int | op | |
| struct kernel_pkey_params * | params |
| 123 | Encoding (eg. "oaep" or "raw" for none) 等于"raw" |
| 125 | 如果copy_from_user( & uparams, _params, uparams的长度)不等于0则返回:负EFAULT |
| 128 | ret等于Interpret parameters. Callers must always call the free function* on params, even if an error is returned. |
| 132 | ret等于asym_query(params, & info) |
| 139 | 如果 Input data size 大于 Maximum size of encrypted blob in bytes 或 Output buffer size (encrypt/decrypt/sign) 大于 Maximum size of decrypted blob in bytes 则返回:负EINVAL |
| 142 | 退出 |
| 143 | 当:op恒等于Create a public key signature |
| 144 | 当:op恒等于Verify a public key signature |
| 145 | 如果 Input data size 大于 Maximum size of signature in bytes 或 Output buffer size (encrypt/decrypt/sign) 大于 Maximum size of raw data to sign in bytes 则返回:负EINVAL |
| 148 | 退出 |
| 149 | 默认 |
| 150 | BUG() |
| 153 | Input data size 等于 Input data size |
| 155 | 返回:0 |
| 名称 | 描述 |
|---|---|
| keyctl_pkey_e_d_s | Encrypt/decrypt/sign* Encrypt data, decrypt data or sign data using a public key |
| keyctl_pkey_verify | Verify a signature |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |