Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:chacha20poly1305_decrypt

Proto: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])

Type:bool

Parameter:

TypeParameterName
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  Return ret
Caller
NameDescribe
chacha20poly1305_selftest