Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__siphash_unaligned

Proto:u64 __siphash_unaligned(const void *data, size_t len, const siphash_key_t *key)

Type:u64

Parameter:

TypeParameterName
const void *data
size_tlen
const siphash_key_t *key
87  end = data + len - len % sizeof(u64)
88  left = len & sizeof(u64) - 1
90  PREAMBLE(len)
91  When data != end cycle
92  m = get_unaligned_le64(data)
93  v3 ^= m
94  SIPROUND
95  SIPROUND
96  v0 ^= m
104  Case left == 7
104  b |= end[6] << 48
105  Case left == 6
105  b |= end[5] << 40
106  Case left == 5
106  b |= end[4] << 32
107  Case left == 4
107  Break
108  Case left == 3
108  b |= end[2] << 16
109  Case left == 2
109  Break
110  Case left == 1
110  b |= end[0]
113  POSTAMBLE