函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\crypto\blake2s-generic.c Create Date:2022-07-27 07:41:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blake2s_compress_generic

函数原型:void blake2s_compress_generic(struct blake2s_state *state, const u8 *block, size_t nblocks, const u32 inc)

返回类型:void

参数:

类型参数名称
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 nblocks大于0循环
51  blake2s_increment_counter(state, inc)
52  内存复制(m, block, BLAKE2S_BLOCK_SIZE)
53  XXX: this stuff can be optimized
54  内存复制(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 i小于8循环h[i]异或等于v[i]按位异或v[i + 8]
102  block加等于BLAKE2S_BLOCK_SIZE
103  nblocks先自减
调用者
名称描述
blake2s_update
blake2s_final