Function report |
Source Code:fs\crypto\fname.c |
Create Date:2022-07-28 20:23:37 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ame_decrypt() - decrypt a filename* The caller must have allocated sufficient memory for the @oname string.* Return: 0 on success, -errno on failure
Proto:static int fname_decrypt(struct inode *inode, const struct fscrypt_str *iname, struct fscrypt_str *oname)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | inode | |
| const struct fscrypt_str * | iname | |
| struct fscrypt_str * | oname |
| 92 | struct skcipher_request * req = NULL |
| 95 | ci = i_crypt_info |
| 101 | req = skcipher_request_alloc() - allocate request data structure*@tfm: cipher handle to be registered with the request*@gfp: memory allocation flag that is handed to kmalloc by the API call |
| 109 | fscrypt_generate_iv( & iv, 0, ci) |
| 117 | If res < 0 Then |
| 118 | fscrypt_err(inode, "Filename decryption failed: %d", res) |
| 119 | Return res |
| 123 | Return 0 |
| Name | Describe |
|---|---|
| fscrypt_fname_disk_to_usr | scrypt_fname_disk_to_usr() - converts a filename from disk space to user* space* The caller must have allocated sufficient memory for the @oname string.* If the key is available, we'll decrypt the disk name; otherwise, we'll encode* it for presentation |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |