Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\crypto\poly1305.c Create Date:2022-07-28 06:47:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:poly1305_update_generic

Proto:void poly1305_update_generic(struct poly1305_desc_ctx *desc, const u8 *src, unsigned int nbytes)

Type:void

Parameter:

TypeParameterName
struct poly1305_desc_ctx *desc
const u8 *src
unsigned intnbytes
176  If Value for the false possibility is greater at compile time( bytes used in partial buffer ) Then
177  bytes = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(nbytes, POLY1305_BLOCK_SIZE - bytes used in partial buffer )
178  No 3D Now!( partial buffer + bytes used in partial buffer , src, bytes)
179  src += bytes
180  nbytes -= bytes
181  bytes used in partial buffer += bytes
189  If Value is more likely to compile time(nbytes >= POLY1305_BLOCK_SIZE) Then
190  poly1305_core_blocks( & accumulator , key , src, nbytes / POLY1305_BLOCK_SIZE, 1)
192  src += nbytes - nbytes % POLY1305_BLOCK_SIZE
193  nbytes %= POLY1305_BLOCK_SIZE
196  If Value for the false possibility is greater at compile time(nbytes) Then
197  bytes used in partial buffer = nbytes
198  No 3D Now!( partial buffer , src, nbytes)