函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Register key type

函数原型:static int __init big_key_init(void)

返回类型:int

参数:

420  Crypto algorithms for big_key data authenticated encryption等于rypto_alloc_aead() - allocate AEAD cipher handle*@alg_name: is the cra_name / name or cra_driver_name / driver name of the* AEAD cipher*@type: specifies the type of the cipher*@mask: specifies the mask for the cipher* Allocate a cipher handle for an AEAD
421  如果是错误
422  ret等于错误
423  打印错误信息("Can't alloc crypto: %d\n", ret)
424  返回:ret
427  如果此条件成立可能性小(为编译器优化)(rypto_aead_ivsize() - obtain IV size*@tfm: cipher handle* The size of the IV for the aead referenced by the cipher handle is* returned. This IV size may be zero if the cipher does not need an IV.* Return: IV size in bytes != BIG_KEY_IV_SIZE)则
428  WARN(1, "big key algorithm changed?")
429  ret等于负EINVAL
430  转到:free_aead
433  ret等于rypto_aead_setauthsize() - set authentication data size*@tfm: cipher handle*@authsize: size of the authentication data / tag in bytes* Set the authentication data size / tag size. AEAD requires an authentication
434  如果ret小于0则
435  打印错误信息("Can't set crypto auth tag len: %d\n", ret)
436  转到:free_aead
439  ret等于gister_key_type - Register a type of key.*@ktype: The new key type.* Register a new key type.* Returns 0 on success or -EEXIST if a type of this name already exists.
440  如果ret小于0则
441  打印错误信息("Can't register type: %d\n", ret)
442  转到:free_aead
445  返回:0
447  free_aead :
448  rypto_free_aead() - zeroize and free aead handle*@tfm: cipher handle to be freed
449  返回:ret