Home
last modified time | relevance | path

Searched refs:sm4_key_sub (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-6.6/crypto/
H A Dsm4.c94 static inline u32 sm4_key_sub(u32 x) in sm4_key_sub() function
135 rk[0] ^= sm4_key_sub(rk[1] ^ rk[2] ^ rk[3] ^ ck[i + 0]); in sm4_expandkey()
136 rk[1] ^= sm4_key_sub(rk[2] ^ rk[3] ^ rk[0] ^ ck[i + 1]); in sm4_expandkey()
137 rk[2] ^= sm4_key_sub(rk[3] ^ rk[0] ^ rk[1] ^ ck[i + 2]); in sm4_expandkey()
138 rk[3] ^= sm4_key_sub(rk[0] ^ rk[1] ^ rk[2] ^ ck[i + 3]); in sm4_expandkey()
/kernel/linux/linux-5.10/crypto/
H A Dsm4_generic.c91 static u32 sm4_key_sub(u32 x) in sm4_key_sub() function
130 t = rk[0] ^ sm4_key_sub(rk[1] ^ rk[2] ^ rk[3] ^ ck[i]); in crypto_sm4_expand_key()

Completed in 2 milliseconds