Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:subshift

Proto:static __always_inline u32 subshift(u32 in[], int pos)

Type:u32

Parameter:

TypeParameterName
u32in
intpos
149  Return 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
Caller
NameDescribe
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