Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\mpi\mpiutil.c Create Date:2022-07-28 07:19:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Note: It was a bad idea to use the number of limbs to allocate* because on a alpha the limbs are large but we normally need* integers of n bits - So we should chnage this to bits (or bytes).* But mpi_alloc is used in a lot of places :-)

Proto:MPI mpi_alloc(unsigned nlimbs)

Type:MPI

Parameter:

TypeParameterName
unsignednlimbs
34  a = kmalloc(sizeof * a, GFP_KERNEL)
35  If Not a Then Return a
38  If nlimbs Then
39  array with the limbs = mpi_alloc_limb_space(nlimbs)
40  If Not array with the limbs Then
41  kfree(a)
42  Return NULL
44  Else
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  Return a
Caller
NameDescribe
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 Signature verification with public key