Function report |
Source Code:include\crypto\internal\poly1305.h |
Create Date:2022-07-28 06:47:29 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Poly1305 requires a unique key for each tag, which implies that we can't set* it on the tfm that gets accessed by multiple users simultaneously. Instead we* expect the key as the first 32 bytes in the update() call.
Proto:static inline unsigned int crypto_poly1305_setdesckey(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int srclen)
Type:unsigned int
Parameter:
Type | Parameter | Name |
---|---|---|
struct poly1305_desc_ctx * | dctx | |
const u8 * | src | |
unsigned int | srclen |
38 | If Not whether s[] has been set Then |
39 | If Not how many keys have been set in r[] && srclen >= POLY1305_BLOCK_SIZE Then |
45 | If srclen >= POLY1305_BLOCK_SIZE Then |
46 | finalize key [0] = get_unaligned_le32(src + 0) |
47 | finalize key [1] = get_unaligned_le32(src + 4) |
48 | finalize key [2] = get_unaligned_le32(src + 8) |
49 | finalize key [3] = get_unaligned_le32(src + 12) |
50 | src += POLY1305_BLOCK_SIZE |
51 | srclen -= POLY1305_BLOCK_SIZE |
52 | whether s[] has been set = true |
55 | Return srclen |
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 |