函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\crypto\curve25519-hacl64.c Create Date:2022-07-27 07:44:09
Last Modify:2022-05-21 12:16:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:addanddouble_fmonty

函数原型:static __always_inline void addanddouble_fmonty(u64 *pp, u64 *ppq, u64 *p, u64 *pq, u64 *qmqp)

返回类型:void

参数:

类型参数名称
u64 *pp
u64 *ppq
u64 *p
u64 *pq
u64 *qmqp
482  qx等于qmqp
483  x2等于pp
484  z2等于pp加5
485  x3等于ppq
486  z3等于ppq加5
487  x等于p
488  z等于p加5
489  xprime等于pq
490  zprime等于pq加5
491  u64 buf[40] = {0}
492  origx等于buf
493  origxprime0等于buf加5
497  xxprime0等于buf加25
498  zzprime0等于buf加30
499  内存复制(origx, x, 5 * x的长度)
500  fsum(x, z)
501  fdifference(z, origx)
502  内存复制(origxprime0, xprime, 5 * xprime的长度)
503  fsum(xprime, zprime)
504  fdifference(zprime, origxprime0)
505  fmul(xxprime0, xprime, z)
506  fmul(zzprime0, x, zprime)
507  origxprime等于buf加5
514  xx0等于buf加15
515  zz0等于buf加20
516  xxprime等于buf加25
517  zzprime等于buf加30
518  zzzprime等于buf加35
519  内存复制(origxprime, xxprime, 5 * xxprime的长度)
520  fsum(xxprime, zzprime)
521  fdifference(zzprime, origxprime)
522  fsquare_fsquare_times(x3, xxprime, 1)
523  fsquare_fsquare_times(zzzprime, zzprime, 1)
524  fmul(z3, zzzprime, qx)
525  fsquare_fsquare_times(xx0, x, 1)
532  zzz等于buf加10
533  xx等于buf加15
534  zz等于buf加20
535  fmul(x2, xx, zz)
536  fdifference(zz, xx)
537  scalar等于121665
538  fscalar(zzz, zz, scalar)
539  fsum(zzz, xx)
540  fmul(z2, zzz, zz)
调用者
名称描述
ladder_smallloop_cmult_small_loop_step