Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mpih_sqr_n_basecase

Proto:void mpih_sqr_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size)

Type:void

Parameter:

TypeParameterName
mpi_ptr_tprodp
mpi_ptr_tup
mpi_size_tsize
215  v_limb = up[0]
216  If v_limb <= 1 Then
217  If v_limb == 1 Then Copy N limbs from S to D. (prodp, up, size)
219  Else Zero N limbs at D (prodp, size)
221  cy_limb = 0
222  Else cy_limb = mpihelp_mul_1(prodp, up, size, v_limb)
225  prodp[size] = cy_limb
226  prodp++
230  When i < size cycle
231  v_limb = up[i]
232  If v_limb <= 1 Then
233  cy_limb = 0
234  If v_limb == 1 Then cy_limb = mpihelp_add_n(prodp, prodp, up, size)
236  Else cy_limb = mpihelp_addmul_1(prodp, up, size, v_limb)
239  prodp[size] = cy_limb
240  prodp++
Caller
NameDescribe
mpi_powmRES = BASE ^ EXP mod MOD