Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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)

Proto:void chacha_block_generic(u32 *state, u8 *stream, int nrounds)

Type:void

Parameter:

TypeParameterName
u32 *state
u8 *stream
intnrounds
82  No 3D Now!(x, state, 64)
84  chacha_permute(x, nrounds)
86  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(x) cycle put_unaligned_le32(x[i] + state[i], & stream[i * sizeof(u32)])
89  state[12]++
Caller
NameDescribe
chacha20_block