Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:poly1305_final_generic

Proto:void poly1305_final_generic(struct poly1305_desc_ctx *desc, u8 *dst)

Type:void

Parameter:

TypeParameterName
struct poly1305_desc_ctx *desc
u8 *dst
206  f = 0
208  If Value for the false possibility is greater at compile time( bytes used in partial buffer ) Then
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){}
Caller
NameDescribe
poly1305_final