函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:inv_subshift

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

返回类型:u32

参数:

类型参数名称
u32in
intpos
157  返回:aes_inv_sbox[in[pos] & 0xff]按位异或aes_inv_sbox[(in[(pos + 3) % 4] >> 8) & 0xff]左移8位按位异或aes_inv_sbox[(in[(pos + 2) % 4] >> 16) & 0xff]左移16位按位异或aes_inv_sbox[(in[(pos + 1) % 4] >> 24) & 0xff]左移24位
调用者
名称描述
aes_decryptaes_decrypt - Decrypt a single AES block*@ctx: Context struct containing the key schedule*@out: Buffer to store the plaintext*@in: Buffer containing the ciphertext