函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\encrypted-keys\encrypted.c Create Date:2022-07-27 20:07:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:init_skcipher_req

函数原型:static struct skcipher_request *init_skcipher_req(const u8 *key, unsigned int key_len)

返回类型:struct skcipher_request

参数:

类型参数名称
const u8 *key
unsigned intkey_len
396  tfm等于rypto_alloc_skcipher() - allocate symmetric key cipher handle*@alg_name: is the cra_name / name or cra_driver_name / driver name of the* skcipher cipher*@type: specifies the type of the cipher*@mask: specifies the mask for the cipher
397  如果是错误
398  打印错误信息("encrypted_key: failed to load %s transform (%ld)\n", blkcipher_alg, 错误)
400  返回:错误指示
403  ret等于rypto_skcipher_setkey() - set key for cipher*@tfm: cipher handle*@key: buffer holding the key*@keylen: length of the key in bytes* The caller provided key is set for the skcipher referenced by the cipher* handle.
404  如果ret小于0则
405  打印错误信息("encrypted_key: failed to setkey (%d)\n", ret)
406  rypto_free_skcipher() - zeroize and free cipher handle*@tfm: cipher handle to be freed
407  返回:错误号
410  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
411  如果非req
412  打印错误信息("encrypted_key: failed to allocate request for %s\n", blkcipher_alg)
414  rypto_free_skcipher() - zeroize and free cipher handle*@tfm: cipher handle to be freed
415  返回:错误号
418  skcipher_request_set_callback() - set asynchronous callback function*@req: request handle*@flags: specify zero or an ORing of the flags* CRYPTO_TFM_REQ_MAY_BACKLOG the request queue may back log and* increase the wait queue beyond the initial maximum
419  返回:req
调用者
名称描述
derived_key_encryptBefore returning data to userspace, encrypt decrypted data.
derived_key_decrypt