Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fe_tobytes

Proto:static __always_inline void fe_tobytes(u8 s[32], const fe *f)

Type:void

Parameter:

TypeParameterName
u8s
const fe *f
167  fe_freeze(h, v)
168  s[0] = h[0] >> 0
169  s[1] = h[0] >> 8
170  s[2] = h[0] >> 16
171  s[3] = h[0] >> 24 | h[1] << 2
172  s[4] = h[1] >> 6
173  s[5] = h[1] >> 14
174  s[6] = h[1] >> 22 | h[2] << 3
175  s[7] = h[2] >> 5
176  s[8] = h[2] >> 13
177  s[9] = h[2] >> 21 | h[3] << 5
178  s[10] = h[3] >> 3
179  s[11] = h[3] >> 11
180  s[12] = h[3] >> 19 | h[4] << 6
181  s[13] = h[4] >> 2
182  s[14] = h[4] >> 10
183  s[15] = h[4] >> 18
184  s[16] = h[5] >> 0
185  s[17] = h[5] >> 8
186  s[18] = h[5] >> 16
187  s[19] = h[5] >> 24 | h[6] << 1
188  s[20] = h[6] >> 7
189  s[21] = h[6] >> 15
190  s[22] = h[6] >> 23 | h[7] << 3
191  s[23] = h[7] >> 5
192  s[24] = h[7] >> 13
193  s[25] = h[7] >> 21 | h[8] << 4
194  s[26] = h[8] >> 4
195  s[27] = h[8] >> 12
196  s[28] = h[8] >> 20 | h[9] << 6
197  s[29] = h[9] >> 2
198  s[30] = h[9] >> 10
199  s[31] = h[9] >> 18
Caller
NameDescribe
curve25519_generic