Quasigroups as a Tool for Construction of Optimal S-boxes
Hristina Mihajloska, FCSE, Skopje, Macedonia
joint research with Danilo Gligoroski, NTNU, Trondheim, Norway
Quasigroups as a Tool for Construction of Optimal S-boxes Hristina - - PowerPoint PPT Presentation
Quasigroups as a Tool for Construction of Optimal S-boxes Hristina Mihajloska , FCSE, Skopje, Macedonia joint research with Danilo Gligoroski , NTNU, Trondheim, Norway ECRYPT II Summer School on Tools , 2012 Mykonos, Greece Outline 1 Quasigroups
joint research with Danilo Gligoroski, NTNU, Trondheim, Norway
1 Quasigroups in Cryptography 2 Modern Trends in Cryptography 3 Preliminaries - Quasigroups and Quasigroup String
4 Construction of Optimal Q-S-boxes 5 Conclusion and Future work
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 2/23
1948, Denes and Keedwell
the number of quasigroups of order n is greater than n! ∗ (n − 1)! ∗ · · · ∗ 2! ∗ 1!
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 3/23
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 4/23
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 5/23
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 5/23
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 6/23
|Q|2 = 42, 2-bit words
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 7/23
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 8/23
❄ ❄ ❄ ❄
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 9/23
2 → Fd
f(x0, x1, . . . , xd−1, y0, y1, . . . , yd−1) = (f0(x0, . . . , xd−1, y0, . . . , yd−1), . . . , fd−1(x0, . . . , xd−1, y0, . . . , yd−1))
2 → F2,
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 10/23
2 → F2, can be uniquely written
The ANFs of the Boolean functions fi give us information about algebraic degree or complexity of the quasigroup (Q, ∗).
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 11/23
2 → F2 2
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 12/23
class of linear quasigroups, with maximal algebraic degree 1 class of non-linear quasigroups, with maximal algebraic degree bigger than 1
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 13/23
map 4 bits bijectively to 4 bits a0 a1 l b0 b1
❄ ❄ Here, l, a0, a1, b0 and b1 ∈ {0, 1, 2, 3}
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 14/23
❅ ❅ ■ ❅ ❅ ■ ❅ ❅ ■ ❅ ❅ ■ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 15/23
Algorithm 1. An iterative method for construction of Q-S-boxes Step 1 Take one quasigroup of order 4 from the class
Step 2 Input the number of rounds; Step 3 Input the leaders. Usually, their number is the same as the number of rounds; Step 4 Generate all possible input blocks of 4 bits in the lexicographic ordering (they are 24); Step 5 Take input blocks one by one, and for each of them: Step 5.1 Apply e-transformation with leader l
Step 5.2 Reverse the result from above and apply e-transformation with other leader l again;
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 16/23
Algorithm 1. An iterative method for construction of Q-S-boxes Step 5.3 Continue this routine as many times as there is a number of rounds; Step 5.4 Save the 4-bit result from the last round; Step 6 At the end concatenate all saved results which generate permutation of order 16 or 4 × 4-bit Q-S-box; Step 7 Investigate predetermined criteria; Step 7.1 If the Q-S-box satisfies criteria, put it in the set of
Step 7.2 If not, go to Step 3; Step 8 Analyze the optimal set of newly obtained Q-S-boxes;
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 17/23
2 leaders and 4 rounds 4 leaders and 4 rounds 8 leaders and 8 rounds
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 18/23
LC → Lin(S)=1/4 Lin(S)=9/16 Lin(S)=1 DC ↓ n % n % n % Diff(S)=1/4 1152 16.7 0.00 0.00 Diff(S)=3/8 0.00 768 11.1 384 5.6 Diff(S)=1/2 0.00 2304 33.3 768 11.1 Diff(S)=5/8 0.00 0.00 0.00 Diff(S)=3/4 0.00 0.00 0.00 Diff(S)=1 0.00 0.00 1536 22.2
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 19/23
LC → Lin(S)=1/4 Lin(S)=9/16 Lin(S)=1 DC ↓ n % n % n % Diff(S)=1/4 9216 8.33 0.00 0.00 Diff(S)=3/8 3072 2.78 12288 11.11 6144 5.56 Diff(S)=1/2 3072 2.78 36864 33.33 15360 13.89 Diff(S)=5/8 0.00 0.00 0.00 Diff(S)=3/4 0.00 0.00 0.00 Diff(S)=1 0.00 0.00 24576 22.22
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 20/23
LC → Lin(S)=1/4 Lin(S)=9/16 Lin(S)=1 DC ↓ n % n % n % Diff(S)=1/4 756480 2.67 280320 0.99 0.00 Diff(S)=3/8 1084416 3.83 9273666 32.75 121278 0.43 Diff(S)=1/2 63744 0.23 8394186 29.65 2590518 9.15 Diff(S)=5/8 0.00 468480 1.65 254208 0.90 Diff(S)=3/4 0.00 224244 0.79 87564 0.31 Diff(S)=1 0.00 0.00 4712448 16.65
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 21/23
using the concept of quasigroup string transformations
using different number of leaders and different number of rounds
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 22/23
ECRYPT II Summer School on Tools, 2012 Mykonos, Greece 23/23