From cb38028d95526ea7193cbfac5d5a0c017e122dc8 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Tue, 10 Oct 2023 15:32:30 +0800 Subject: [PATCH] Updated SM4 with AESENCLAST (markdown) --- SM4-with-AESENCLAST.md | 1 + 1 file changed, 1 insertion(+) diff --git a/SM4-with-AESENCLAST.md b/SM4-with-AESENCLAST.md index f37e1c1..739767e 100644 --- a/SM4-with-AESENCLAST.md +++ b/SM4-with-AESENCLAST.md @@ -175,6 +175,7 @@ func sm4_box_aesenclast_intel(rk uint32, t0, t1, t2, t3, a1l, a1h, a2l, a2h __m1 return x } ``` +其实x = mm_shuffle_epi8(x, intelmaskSrows)在mm_aesenclast_si128之前调用,结果也是一样的。 ## How to calculate lookup table from M, C? $\{ M\times i + C \mid i \in [0,255] \}$