From b0801c9973c5a057f4bf77fe895ae96068baa8cb Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Fri, 22 Oct 2021 10:51:26 +0800 Subject: [PATCH] Updated SM4 with AESENCLAST (markdown) --- SM4-with-AESENCLAST.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ```