函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:chacha20poly1305_encrypt

函数原型:void chacha20poly1305_encrypt(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])

返回类型:void

参数:

类型参数名称
u8 *dst
const u8 *src
const size_tsrc_len
const u8 *ad
const size_tad_len
const u64nonce
const u8key
101  chacha_load_key(k, key)
103  iv[0]等于0
104  iv[1]等于The following macros are to be defined by (nonce)
106  chacha_init(chacha_state, k, (u8 * )iv)
107  __chacha20poly1305_encrypt(dst, src, src_len, ad, ad_len, chacha_state)
109  memzero_explicit - Fill a region of memory (e
110  memzero_explicit - Fill a region of memory (e
调用者
名称描述
chacha20poly1305_selftest_encrypt