函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:chacha20poly1305_decrypt

函数原型:bool chacha20poly1305_decrypt(u8 *dst, const u8 *src, const size_t src_len, const u8 *ad, const size_t ad_len, const u64 nonce, const u8 key[CHACHA20POLY1305_KEY_SIZE])

返回类型:bool

参数:

类型参数名称
u8 *dst
const u8 *src
const size_tsrc_len
const u8 *ad
const size_tad_len
const u64nonce
const u8key
180  chacha_load_key(k, key)
182  iv[0]等于0
183  iv[1]等于The following macros are to be defined by (nonce)
185  chacha_init(chacha_state, k, (u8 * )iv)
186  ret等于__chacha20poly1305_decrypt(dst, src, src_len, ad, ad_len, chacha_state)
189  memzero_explicit - Fill a region of memory (e
190  memzero_explicit - Fill a region of memory (e
191  memzero_explicit - Fill a region of memory (e
192  返回:ret
调用者
名称描述
chacha20poly1305_selftest