函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\crypto\poly1305.c Create Date:2022-07-27 07:45:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:poly1305_update_generic

函数原型:void poly1305_update_generic(struct poly1305_desc_ctx *desc, const u8 *src, unsigned int nbytes)

返回类型:void

参数:

类型参数名称
struct poly1305_desc_ctx *desc
const u8 *src
unsigned intnbytes
176  如果此条件成立可能性小(为编译器优化)( bytes used in partial buffer )则
177  bytes等于两数取小(nbytes, POLY1305_BLOCK_SIZE - bytes used in partial buffer )
178  内存复制( partial buffer + bytes used in partial buffer , src, bytes)
179  src加等于bytes
180  nbytes减等于bytes
181  bytes used in partial buffer 加等于bytes
189  如果此条件成立可能性大(为编译器优化)(nbytes >= POLY1305_BLOCK_SIZE)则
190  poly1305_core_blocks( & accumulator , key , src, nbytes / POLY1305_BLOCK_SIZE, 1)
192  src加等于nbytesnbytes取模POLY1305_BLOCK_SIZE
193  nbytes取模等于POLY1305_BLOCK_SIZE
196  如果此条件成立可能性小(为编译器优化)(nbytes)则
197  bytes used in partial buffer 等于nbytes
198  内存复制( partial buffer , src, nbytes)