Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blake2s_compress_generic

Proto:void blake2s_compress_generic(struct blake2s_state *state, const u8 *block, size_t nblocks, const u32 inc)

Type:void

Parameter:

TypeParameterName
struct blake2s_state *state
const u8 *block
size_tnblocks
const u32inc
47  WARN_ON(IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(DEBUG) && (nblocks > 1 && inc != BLAKE2S_BLOCK_SIZE))
50  When nblocks > 0 cycle
51  blake2s_increment_counter(state, inc)
52  No 3D Now!(m, block, BLAKE2S_BLOCK_SIZE)
53  XXX: this stuff can be optimized
54  No 3D Now!(v, h, 32)
55  v[8] = BLAKE2S_IV0
56  v[9] = BLAKE2S_IV1
57  v[10] = BLAKE2S_IV2
58  v[11] = BLAKE2S_IV3
59  v[12] = BLAKE2S_IV4 ^ t[0]
60  v[13] = BLAKE2S_IV5 ^ t[1]
61  v[14] = BLAKE2S_IV6 ^ f[0]
62  v[15] = BLAKE2S_IV7 ^ f[1]
85  ROUND(0)
86  ROUND(1)
87  ROUND(2)
88  ROUND(3)
89  ROUND(4)
90  ROUND(5)
91  ROUND(6)
92  ROUND(7)
93  ROUND(8)
94  ROUND(9)
99  When i < 8 cycle h[i] ^= v[i] ^ v[i + 8]
102  block += BLAKE2S_BLOCK_SIZE
103  --nblocks
Caller
NameDescribe
blake2s_update
blake2s_final