函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blake2s_update

函数原型:void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen)

返回类型:void

参数:

类型参数名称
struct blake2s_state *state
const u8 *in
size_tinlen
24  fill等于BLAKE2S_BLOCK_SIZEbuflen
26  如果此条件成立可能性小(为编译器优化)(!inlen)则返回
28  如果inlen大于fill
29  内存复制(buf + buflen, in, fill)
30  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_CRYPTO_ARCH_HAVE_LIB_BLAKE2S)则blake2s_compress_arch(state, buf, 1, BLAKE2S_BLOCK_SIZE)
33  否则blake2s_compress_generic(state, buf, 1, BLAKE2S_BLOCK_SIZE)
36  buflen等于0
37  in加等于fill
38  inlen减等于fill
40  如果inlen大于BLAKE2S_BLOCK_SIZE
41  nblocks等于DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE)
43  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_CRYPTO_ARCH_HAVE_LIB_BLAKE2S)则blake2s_compress_arch(state, in, nblocks - 1, BLAKE2S_BLOCK_SIZE)
46  否则blake2s_compress_generic(state, in, nblocks - 1, BLAKE2S_BLOCK_SIZE)
49  in加等于BLAKE2S_BLOCK_SIZEnblocks减1的差
50  inlen减等于BLAKE2S_BLOCK_SIZEnblocks减1的差
52  内存复制(buf + buflen, in, inlen)
53  buflen加等于inlen
调用者
名称描述
blake2s256_hmac
blake2s_selftest