Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\crypto\curve25519-hacl64.c Create Date:2022-07-28 06:46:28
Last Modify:2022-05-21 12:16:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:fscalar

Proto:static __always_inline void fscalar(u64 *output, u64 *b, u64 s)

Type:void

Parameter:

TypeParameterName
u64 *output
u64 *b
u64s
405  xi = b[0]
406  tmp[0] = xi * s
409  xi = b[1]
410  tmp[1] = xi * s
413  xi = b[2]
414  tmp[2] = xi * s
417  xi = b[3]
418  tmp[3] = xi * s
421  xi = b[4]
422  tmp[4] = xi * s
424  fproduct_carry_wide_(tmp)
425  b4 = tmp[4]
426  b0 = tmp[0]
427  b4_ = b4 & 0x7ffffffffffffLLU
428  b0_ = b0 + 19 * (b4 >> 51)
429  tmp[4] = b4_
430  tmp[0] = b0_
431  fproduct_copy_from_wide_(output, tmp)
Caller
NameDescribe
addanddouble_fmonty