函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hacha_block - generate one keystream block and increment block counter*@state: input state matrix (16 32-bit words)*@stream: output keystream block (64 bytes)*@nrounds: number of rounds (20 or 12; 20 is recommended)

函数原型:void chacha_block_generic(u32 *state, u8 *stream, int nrounds)

返回类型:void

参数:

类型参数名称
u32 *state
u8 *stream
intnrounds
82  内存复制(x, state, 64)
84  chacha_permute(x, nrounds)
86 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(x)循环put_unaligned_le32(x[i] + state[i], & stream[i * sizeof(u32)])
89  state[12]自加
调用者
名称描述
chacha20_block