diff --git a/SM4-with-AESENCLAST.md b/SM4-with-AESENCLAST.md index a627210..b26631f 100644 --- a/SM4-with-AESENCLAST.md +++ b/SM4-with-AESENCLAST.md @@ -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?** -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. + 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. Below is sample ```