mirror of
https://github.com/emmansun/gmsm.git
synced 2025-05-10 19:16:18 +08:00
Updated SM4 with AESENCLAST (markdown)
parent
312d7524df
commit
e190778d0c
@ -13,7 +13,10 @@ A2(x) = M2*x + C2
|
|||||||
|
|
||||||
The combinations of (M1, C1, M2, C2) or (A1, A2) are not unique.
|
The combinations of (M1, C1, M2, C2) or (A1, A2) are not unique.
|
||||||
|
|
||||||
Two known (M1, C1, M2, C2), please reference [sm4 with AESENCLAST](https://gist.github.com/emmansun/ae4677d71c75ff8407d5f5b3a884f5d2), **my question is how to generate all (M1, C1, M2, C2)? **
|
Two known (M1, C1, M2, C2), please reference [sm4 with AESENCLAST](https://gist.github.com/emmansun/ae4677d71c75ff8407d5f5b3a884f5d2).
|
||||||
|
|
||||||
|
My question is how to generate all (M1, C1, M2, C2)?
|
||||||
|
|
||||||
```
|
```
|
||||||
{(M1, C1, M2, C2) | SM4-S(x) = A2(AES-S(A1(x)), A1(x) = M1*x + C1, A2(x) = M2*x + C2}
|
{(M1, C1, M2, C2) | SM4-S(x) = A2(AES-S(A1(x)), A1(x) = M1*x + C1, A2(x) = M2*x + C2}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user