Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
u8 * | dst | |
const u8 * | src | |
const size_t | src_len | |
const u8 * | ad | |
const size_t | ad_len | |
const u64 | nonce | |
const u8 | key |
180 | chacha_load_key(k, key) |
182 | iv[0] = 0 |
185 | chacha_init(chacha_state, k, (u8 * )iv) |
186 | ret = __chacha20poly1305_decrypt(dst, src, src_len, ad, ad_len, chacha_state) |
192 | Return ret |
Name | Describe |
---|---|
chacha20poly1305_selftest |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |