Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:chacha_init_generic

Proto:static inline void chacha_init_generic(u32 *state, const u32 *key, const u8 *iv)

Type:void

Parameter:

TypeParameterName
u32 *state
const u32 *key
const u8 *iv
57  state[0] = 0x61707865
58  state[1] = 0x3320646e
59  state[2] = 0x79622d32
60  state[3] = 0x6b206574
61  state[4] = key[0]
62  state[5] = key[1]
63  state[6] = key[2]
64  state[7] = key[3]
65  state[8] = key[4]
66  state[9] = key[5]
67  state[10] = key[6]
68  state[11] = key[7]
69  state[12] = get_unaligned_le32(iv + 0)
70  state[13] = get_unaligned_le32(iv + 4)
71  state[14] = get_unaligned_le32(iv + 8)
72  state[15] = get_unaligned_le32(iv + 12)