| Function report | 
| Source Code: fs\crypto\keysetup.c | Create Date:2022-07-28 20:24:00 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Create a symmetric cipher object for the given encryption mode and key
Proto:struct crypto_skcipher *fscrypt_allocate_skcipher(struct fscrypt_mode *mode, const u8 *raw_key, const struct inode *inode)
Type:struct crypto_skcipher
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct fscrypt_mode * | mode | |
| const u8 * | raw_key | |
| const struct inode * | inode | 
| 75 | fscrypt_warn(inode, "Missing crypto API support for %s (API name: \"%s\")", friendly_name, cipher_str) | 
| 80 | fscrypt_err(inode, "Error allocating '%s' transform: %ld", cipher_str, PTR_ERR(tfm)) | 
| 82 | Return tfm | 
| 84 | If Not xchg( & logged_impl_name, 1) Then | 
| 91 | pr_info("fscrypt: %s using implementation \"%s\"\n", friendly_name, cra_driver_name) | 
| 97 | If err Then Go to err_free_tfm | 
| 100 | Return tfm | 
| 102 | err_free_tfm : | 
| Name | Describe | 
|---|---|
| fscrypt_set_derived_key | Given the per-file key, set up the file's crypto transform object | 
| setup_per_mode_key | |
| fscrypt_get_direct_key | Prepare to encrypt directly using the master key in the given mode | 
| 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 |