Function report |
Source Code:lib\crypto\poly1305.c |
Create Date:2022-07-28 06:47:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:poly1305_final_generic
Proto:void poly1305_final_generic(struct poly1305_desc_ctx *desc, u8 *dst)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct poly1305_desc_ctx * | desc | |
u8 * | dst |
206 | f = 0 |
209 | partial buffer [ bytes used in partial buffer ++] = 1 |
210 | memset( partial buffer + bytes used in partial buffer , 0, POLY1305_BLOCK_SIZE - bytes used in partial buffer ) |
212 | poly1305_core_blocks( & accumulator , key , partial buffer , 1, 0) |
215 | poly1305_core_emit( & accumulator , digest) |
218 | f = (f >> 32) + le32_to_cpu(digest[0]) + finalize key [0] |
219 | put_unaligned_le32(f, dst + 0) |
220 | f = (f >> 32) + le32_to_cpu(digest[1]) + finalize key [1] |
221 | put_unaligned_le32(f, dst + 4) |
222 | f = (f >> 32) + le32_to_cpu(digest[2]) + finalize key [2] |
223 | put_unaligned_le32(f, dst + 8) |
224 | f = (f >> 32) + le32_to_cpu(digest[3]) + finalize key [3] |
225 | put_unaligned_le32(f, dst + 12) |
227 | * desc = (struct poly1305_desc_ctx){} |
Name | Describe |
---|---|
poly1305_final |
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 |