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:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:fe_frombytes_impl

Proto:static __always_inline void fe_frombytes_impl(u32 h[10], const u8 *s)

Type:void

Parameter:

TypeParameterName
u32h
const u8 *s
33  a0 = get_unaligned_le32(s)
34  a1 = get_unaligned_le32(s + 4)
35  a2 = get_unaligned_le32(s + 8)
36  a3 = get_unaligned_le32(s + 12)
37  a4 = get_unaligned_le32(s + 16)
38  a5 = get_unaligned_le32(s + 20)
39  a6 = get_unaligned_le32(s + 24)
40  a7 = get_unaligned_le32(s + 28)
41  h[0] = a0 & (1 << 26) - 1
42  h[1] = a0 >> 26 | (a1 & (1 << 19) - 1 ) << 6
43  h[2] = a1 >> 19 | (a2 & (1 << 13) - 1 ) << 13
44  h[3] = a2 >> 13 | (a3 & (1 << 6) - 1 ) << 19
45  h[4] = a3 >> 6
46  h[5] = a4 & (1 << 25) - 1
47  h[6] = a4 >> 25 | (a5 & (1 << 19) - 1 ) << 7
48  h[7] = a5 >> 19 | (a6 & (1 << 12) - 1 ) << 13
49  h[8] = a6 >> 12 | (a7 & (1 << 6) - 1 ) << 20
50  h[9] = a7 >> 6 & (1 << 25) - 1
Caller
NameDescribe
fe_frombytes