函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xchacha_init

函数原型:static void xchacha_init(u32 *chacha_state, const u8 *key, const u8 *nonce)

返回类型:void

参数:

类型参数名称
u32 *chacha_state
const u8 *key
const u8 *nonce
43  memset(iv, 0, 8)
44  内存复制(iv + 8, nonce + 16, 8)
46  chacha_load_key(k, key)
49  chacha_init(chacha_state, k, nonce)
50  hchacha_block(chacha_state, k, 20)
52  chacha_init(chacha_state, k, iv)
54  memzero_explicit - Fill a region of memory (e
55  memzero_explicit - Fill a region of memory (e
调用者
名称描述
xchacha20poly1305_encrypt
xchacha20poly1305_decrypt