Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xchacha_init

Proto:static void xchacha_init(u32 *chacha_state, const u8 *key, const u8 *nonce)

Type:void

Parameter:

TypeParameterName
u32 *chacha_state
const u8 *key
const u8 *nonce
43  memset(iv, 0, 8)
44  No 3D Now!(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
Caller
NameDescribe
xchacha20poly1305_encrypt
xchacha20poly1305_decrypt