Updated SM4 with AESENCLAST (markdown)

Sun Yimin 2021-10-22 10:51:26 +08:00
parent 3475d28c0b
commit b0801c9973

@ -20,8 +20,8 @@ Two known (M1, C1, M2, C2), please reference [sm4 with AESENCLAST](https://gist.
**How to calculate M, C from lookup table?** **How to calculate M, C from lookup table?**
1.The first element of the table, T[0] should be the C. 1.The first element of the table, T[0] should be the C.
2.Use T[1] XOR T[0], T[2] XOR T[0], T[4] XOR T[0], T[8] XOR T[0], T[16] XOR T[0], T[32] XOR T[0], T[64] XOR T[0], T[128] XOR T[0] to calculate matrix M. 2.Use T[1] XOR T[0], T[2] XOR T[0], T[4] XOR T[0], T[8] XOR T[0], T[16] XOR T[0], T[32] XOR T[0], T[64] XOR T[0], T[128] XOR T[0] to calculate matrix M.
Below is sample Below is sample
``` ```