函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:poly1305_core_setkey

函数原型:void poly1305_core_setkey(struct poly1305_key *key, const u8 *raw_key)

返回类型:void

参数:

类型参数名称
struct poly1305_key *key
const u8 *raw_key
33  key, base 2^26 [0]等于get_unaligned_le32(raw_key + 0)右移0位按位与0x3ffffff
34  key, base 2^26 [1]等于get_unaligned_le32(raw_key + 3)右移2位按位与0x3ffff03
35  key, base 2^26 [2]等于get_unaligned_le32(raw_key + 6)右移4位按位与0x3ffc0ff
36  key, base 2^26 [3]等于get_unaligned_le32(raw_key + 9)右移6位按位与0x3f03fff
37  key, base 2^26 [4]等于get_unaligned_le32(raw_key + 12)右移8位按位与0x00fffff
调用者
名称描述
poly1305_init_generic
crypto_poly1305_setdesckeyPoly1305 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.