Function report |
Source Code:lib\crypto\chacha20poly1305.c |
Create Date:2022-07-28 06:44:45 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:chacha20poly1305_encrypt
Proto: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])
Type:void
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 |
101 | chacha_load_key(k, key) |
103 | iv[0] = 0 |
106 | chacha_init(chacha_state, k, (u8 * )iv) |
107 | __chacha20poly1305_encrypt(dst, src, src_len, ad, ad_len, chacha_state) |
Name | Describe |
---|---|
chacha20poly1305_selftest_encrypt |
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 |