Home
last modified time | relevance | path

Searched refs:aes_sbox (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/lib/crypto/
H A Daes.c15 static volatile const u8 __cacheline_aligned aes_sbox[] = { variable
85 extern const u8 crypto_aes_sbox[256] __alias(aes_sbox);
149 return (aes_sbox[in[pos] & 0xff]) ^ in subshift()
165 return (aes_sbox[in & 0xff]) ^ in subw()
166 (aes_sbox[(in >> 8) & 0xff] << 8) ^ in subw()
167 (aes_sbox[(in >> 16) & 0xff] << 16) ^ in subw()
168 (aes_sbox[(in >> 24) & 0xff] << 24); in subw()
276 st0[0] ^= aes_sbox[ 0] ^ aes_sbox[ 64] ^ aes_sbox[134] ^ aes_sbox[195]; in aes_encrypt()
277 st0[1] ^= aes_sbox[16] ^ aes_sbox[ 82] ^ aes_sbox[158] ^ aes_sbox[221]; in aes_encrypt()
278 st0[2] ^= aes_sbox[32] ^ aes_sbox[ 96] ^ aes_sbox[160] ^ aes_sbox[234]; in aes_encrypt()
[all …]
/openbmc/linux/drivers/crypto/chelsio/
H A Dchcr_algo.h371 static const u8 aes_sbox[256] = { variable
398 bytes[0] = aes_sbox[bytes[0]]; in aes_ks_subword()
399 bytes[1] = aes_sbox[bytes[1]]; in aes_ks_subword()
400 bytes[2] = aes_sbox[bytes[2]]; in aes_ks_subword()
401 bytes[3] = aes_sbox[bytes[3]]; in aes_ks_subword()