Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\crypto\curve25519-fiat32.c Create Date:2022-07-28 06:46:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Replace (f,g) with (g,f) if b == 1;* replace (f,g) with (f,g) if b == 0.* Preconditions: b in {0,1}

Proto:static noinline void fe_cswap(fe *f, fe *g, unsigned int b)

Type:void

Parameter:

TypeParameterName
fe *f
fe *g
unsigned intb
625  b = 0 - b
626  When i < 10 cycle
627  x = v[i] ^ v[i]
628  x &= b
629  v[i] ^= x
630  v[i] ^= x
Caller
NameDescribe
curve25519_generic