Function report |
Source Code:lib\crypto\chacha20poly1305.c |
Create Date:2022-07-28 06:44:44 |
| 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:static void __chacha20poly1305_encrypt(u8 *dst, const u8 *src, const size_t src_len, const u8 *ad, const size_t ad_len, u32 *chacha_state)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| u8 * | dst | |
| const u8 * | src | |
| const size_t | src_len | |
| const u8 * | ad | |
| const size_t | ad_len | |
| u32 * | chacha_state |
| 62 | pad0 = page_address(ZERO_PAGE(0)) |
| 69 | chacha20_crypt(chacha_state, block0, pad0, size of block0 ) |
| 70 | poly1305_init( & poly1305_state, block0) |
| 72 | poly1305_update( & poly1305_state, ad, ad_len) |
| 73 | If ad_len & 0xf Then poly1305_update( & poly1305_state, pad0, 0x10 - (ad_len & 0xf)) |
| 76 | chacha20_crypt(chacha_state, dst, src, src_len) |
| 78 | poly1305_update( & poly1305_state, dst, src_len) |
| 79 | If src_len & 0xf Then poly1305_update( & poly1305_state, pad0, 0x10 - (src_len & 0xf)) |
| 84 | poly1305_update( & poly1305_state, (u8 * )lens, size of lens ) |
| 86 | poly1305_final( & poly1305_state, dst + src_len) |
| Name | Describe |
|---|---|
| chacha20poly1305_encrypt | |
| xchacha20poly1305_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 |