Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return the number of bits in A.

Proto:unsigned mpi_get_nbits(MPI a)

Type:unsigned

Parameter:

TypeParameterName
MPIa
43  Sometimes we have MSL (most significant limbs) which are 0;* this is for some reasons not good, so this function removes them.
45  If number of valid limbs Then
46  alimb = array with the limbs [ number of valid limbs - 1]
47  If alimb Then n = _leading_zeros - Count the number of zeros from the MSB back*@x: The value* Count the number of leading zeros from the MSB going towards the LSB in @x.* If the MSB of @x is set, the result is 0.
49  Else n = BITS_PER_MPI_LIMB
51  n = BITS_PER_MPI_LIMB - n + ( number of valid limbs - 1) * BITS_PER_MPI_LIMB
52  Else n = 0
54  Return n
Caller
NameDescribe
digsig_verify_rsaRSA Signature verification with public key