函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:分配mpi空间

函数原型:MPI mpi_alloc(unsigned nlimbs)

返回类型:MPI

参数:

类型参数名称
unsignednlimbs
34  a等于kmalloc(sizeof * a, GFP_KERNEL)
35  如果非a则返回:a
38  如果nlimbs
39  array with the limbs 等于mpi_alloc_limb_space(nlimbs)
40  如果非 array with the limbs
41  kfree(a)
42  返回:NULL
44  否则
45  array with the limbs = NULL
48  array size (# of allocated limbs) 等于nlimbs
49  number of valid limbs 等于0
50  indicates a negative number 等于0
51  bit 0: array must be allocated in secure memory space 等于0
52  the real number of valid bits (info only) 等于0
53  返回:a
调用者
名称描述
mpi_read_raw_from_sglmpi_read_raw_from_sgl() - Function allocates an MPI and populates it with* data from the sgl* This function works in the same way as the mpi_read_raw_data, but it* takes an sgl instead of void * buffer. i.e. it allocates
digsig_verify_rsaRSA公钥签名验证
mpi_read_raw_data读一字节流为正整数