函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:subshift

函数原型:static __always_inline u32 subshift(u32 in[], int pos)

返回类型:u32

参数:

类型参数名称
u32in
intpos
149  返回:Emit the sbox as volatile const to prevent the compiler from doing* constant folding on sbox references involving fixed indexes.[in[pos] & 0xff]按位异或Emit the sbox as volatile const to prevent the compiler from doing* constant folding on sbox references involving fixed indexes.[(in[(pos + 1) % 4] >> 8) & 0xff]左移8位按位异或Emit the sbox as volatile const to prevent the compiler from doing* constant folding on sbox references involving fixed indexes.[(in[(pos + 2) % 4] >> 16) & 0xff]左移16位按位异或Emit the sbox as volatile const to prevent the compiler from doing* constant folding on sbox references involving fixed indexes.[(in[(pos + 3) % 4] >> 24) & 0xff]左移24位
调用者
名称描述
aes_encryptaes_encrypt - Encrypt a single AES block*@ctx: Context struct containing the key schedule*@out: Buffer to store the ciphertext*@in: Buffer containing the plaintext