函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\crypto\skcipher.h Create Date:2022-07-27 07:44:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static inline struct skcipher_request *skcipher_request_alloc(struct crypto_skcipher *tfm, gfp_t gfp)

返回类型:struct skcipher_request

参数:

类型参数名称
struct crypto_skcipher *tfm
gfp_tgfp
500  req等于kmalloc(sizeof(structskcipher_request) + rypto_skcipher_reqsize() - obtain size of the request data structure*@tfm: cipher handle* Return: number of bytes, gfp)
503  如果此条件成立可能性大(为编译器优化)(req)则skcipher_request_set_tfm() - update cipher handle reference in request*@req: request handle to be modified*@tfm: cipher handle that shall be added to the request handle* Allow the caller to replace the existing skcipher handle in the request
506  返回:req
调用者
名称描述
init_skcipher_req
fscrypt_crypt_blockEncrypt or decrypt a single filesystem block of file contents
fname_encryptame_encrypt() - encrypt a filename* The output buffer must be at least as large as the input buffer.* Any extra space is filled with NUL padding before encryption.* Return: 0 on success, -errno on failure
fname_decryptame_decrypt() - decrypt a filename* The caller must have allocated sufficient memory for the @oname string.* Return: 0 on success, -errno on failure
derive_key_aesv1 key derivation function