Updated SM4 with AESENCLAST (markdown)

Sun Yimin 2023-10-10 17:26:04 +08:00
parent ddf84187f2
commit 1188f05c4f

@ -179,7 +179,7 @@ func sm4_box_aesenclast_intel(rk uint32, t0, t1, t2, t3, a1l, a1h, a2l, a2h __m1
类似于: 类似于:
``` ```
{(M1, C1, M2, C2) | SM4-S(x) = A2(AES-S(A1(x)), A1(x) = M1*x + C1, A2(x) = M2*(x+0x63) + C2 = M2*x + M2*0x63 + C2} {(M1, C1, M2, C2) | SM4-S(x) = A2(AES-S(A1(x)), A1(x) = M1*x + C1, A2(x) = M2*(x+0x63) + C2}
``` ```
## How to calculate lookup table from M, C? ## How to calculate lookup table from M, C?