mirror of
https://github.com/emmansun/gmsm.git
synced 2025-05-11 03:26:17 +08:00
Updated SM4 with AESENCLAST (markdown)
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
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user