Updated SM4 with AESENCLAST (markdown)

Sun Yimin 2023-10-10 15:32:30 +08:00
parent 88c6ed8177
commit cb38028d95

@ -175,6 +175,7 @@ func sm4_box_aesenclast_intel(rk uint32, t0, t1, t2, t3, a1l, a1h, a2l, a2h __m1
return x return x
} }
``` ```
其实x = mm_shuffle_epi8(x, intelmaskSrows)在mm_aesenclast_si128之前调用结果也是一样的。
## How to calculate lookup table from M, C? ## How to calculate lookup table from M, C?
$\{ M\times i + C \mid i \in [0,255] \}$ $\{ M\times i + C \mid i \in [0,255] \}$