函数逻辑报告 |
Source Code:include\crypto\internal\poly1305.h |
Create Date:2022-07-27 07:45:05 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:static inline unsigned int crypto_poly1305_setdesckey(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int srclen)
返回类型:unsigned int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct poly1305_desc_ctx * | dctx | |
| const u8 * | src | |
| unsigned int | srclen |
| 38 | 如果非 whether s[] has been set 则 |
| 40 | poly1305_core_setkey( key , src) |
| 41 | src加等于POLY1305_BLOCK_SIZE |
| 45 | 如果srclen大于等于POLY1305_BLOCK_SIZE则 |
| 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 |
| 52 | whether s[] has been set = true |
| 55 | 返回:srclen |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |