arxtools a toolkit for arx analysis
play

ARXtools: A toolkit for ARX analysis . . . . . . . . . . . . . . . - PowerPoint PPT Presentation

1 / 26 Introduction Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application ARXtools: A toolkit for ARX analysis . . . . . . . . . . . . .


  1. 1 / 26 Introduction Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application ARXtools: A toolkit for ARX analysis . . . . . . . . . . . . . . . . . . . . . . Gaëtan Leurent University of Luxembourg Presented by PierreAlain Fouque ENS Third NIST SHA3 conference

  2. 2 / 26 Introduction Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application Motivation . . . . . . . . . . . . . . . . . . . . . . ▶ Most of the cryptanalysis of ARX designs is bittwiddling ▶ As opposed to SBox based designs ▶ Building/Verifying differential path for ARX designs is hard ▶ Many paths built by hand ▶ Problems with MD5 and SHA1 attacks [Manuel, DCC 2011] ▶ Problems reported with boomerang attacks (incompatible paths): ▶ HAVAL [Sasaki, SAC 2011] ▶ SHA256 [BLMN, Asiacrypt 2011] ▶ Some tools are described in literature, but most are not available

  3. 3 / 26 Introduction Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application Our tools . . . . . . . . . . . . . . . . . . . . . . 1 Tool for Ssystems ▶ Similar to [Mouha  al. , SAC 2010] ▶ Completely automated 2 Representation of differential paths as sets of constraints, and analysis with Ssystems ▶ Similar to [De Cannière  Rechberger, Asiacrypt 2006] ▶ New set of constraints ▶ Propagation of necessary constraints 3 Graphical tool for bittwiddling with differential paths

  4. 4 / 26 Introduction Third NIST SHA-3 conference ARXtools: A toolkit for ARX analysis G. Leurent (pres: P.-A. Fouque) Application Differential characteristics S-system Analysis Outline Introduction Application Differential characteristics S-system Analysis . . . . . . . . . . . . . . . . . . . . . .

  5. 5 / 26 Introduction Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application S-Systems Definition . . . . . . . . . . . . . . . . . . . . . . T-function ∀ t , t bits of the output can be computed from t bits of the input. S-function There exist a set of states S so that: ∀ t , bit t of the output and state S [ t ] ∈ S can be computed from bit t of the input, and state S [ t − 1 ] . S-system f ( P , x ) = 0 f is an Sfunction, P is a parameter, x is an unknown ▶ Operations mod 2 n , Boolean functions are Tfunctions ▶ Addition, Xor, and Boolean operations are Sfunctions

  6. 6 / 26 Introduction Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application Solving S-Systems Important Example . . . . . . . . . . . . . . . . . . . . . . x ⊕ 𝛦 = x ⊞ 𝜀 ▶ On average one solution ▶ Easy to solve because it’s a Tfunction. ▶ Guess LSB, check, and move to next bit ▶ How easy exactly? ▶ Backtracking is exponential in the worst case: x ⊕ 𝟷𝚢𝟿𝟷𝟷𝟷𝟷𝟷𝟷𝟷 = x ▶ For random 𝜀, 𝛦 , most of the time the system is inconsistent

  7. 6 / 26 Introduction Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application Solving S-Systems Important Example . . . . . . . . . . . . . . . . . . . . . . x ⊕ 𝛦 = x ⊞ 𝜀 ▶ On average one solution ▶ Easy to solve because it’s a Tfunction. ▶ Guess LSB, check, and move to next bit ▶ How easy exactly? ▶ Backtracking is exponential in the worst case: x ⊕ 𝟷𝚢𝟿𝟷𝟷𝟷𝟷𝟷𝟷𝟷 = x ▶ For random 𝜀, 𝛦 , most of the time the system is inconsistent

  8. 6 / 26 Introduction Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application Solving S-Systems Important Example . . . . . . . . . . . . . . . . . . . . . . x ⊕ 𝛦 = x ⊞ 𝜀 ▶ On average one solution ▶ Easy to solve because it’s a Tfunction. ▶ Guess LSB, check, and move to next bit ▶ How easy exactly? ▶ Backtracking is exponential in the worst case: x ⊕ 𝟷𝚢𝟿𝟷𝟷𝟷𝟷𝟷𝟷𝟷 = x ▶ For random 𝜀, 𝛦 , most of the time the system is inconsistent

  9. 6 / 26 Introduction Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application Solving S-Systems Important Example . . . . . . . . . . . . . . . . . . . . . . x ⊕ 𝛦 = x ⊞ 𝜀 ▶ On average one solution ▶ Easy to solve because it’s a Tfunction. ▶ Guess LSB, check, and move to next bit ▶ How easy exactly? ▶ Backtracking is exponential in the worst case: x ⊕ 𝟷𝚢𝟿𝟷𝟷𝟷𝟷𝟷𝟷𝟷 = x ▶ For random 𝜀, 𝛦 , most of the time the system is inconsistent

  10. 7 / 26 Introduction Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application Transition Automata 𝜀 𝛦 𝛦 𝜀 . . . . . . . . . . . . . . . . . . . . . . Carry transitions for x ⊕ 𝛦 = x ⊞ 𝜀 . c x c’ c x c’ 0 0 0 0 0 1 0 0 0  0 0 0 1 0 1 0 0 1  0 0 1 0  1 0 1 0 1 0 0 1 1  1 0 1 1 1 0 1 0 0  1 1 0 0 0 0 1 0 1  1 1 0 1 1 0 1 1 0 0 1 1 1 0  0 1 1 1 1 1 1 1 1  We use automata to study Ssystems: [Mouha  al. , SAC 2010] ▶ States represent the carries ▶ Transitions are labeled with the variables ▶ Automaton accepts solutions to the system. ▶ Can count the number of solutions.

  11. 7 / 26 Introduction Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application Transition Automata . . . . . . . . . . . . . . . . . . . . . . Carry transitions for x ⊕ 𝛦 = x ⊞ 𝜀 . The edges are indexed by 𝛦, 𝜀, x 0,0,0 1,0,1 0,0,1 0,1,0 1,1,0 0,1,1 1,1,1 . . . . . . . start 0 1 1,0,0 We use automata to study Ssystems: [Mouha  al. , SAC 2010] ▶ States represent the carries ▶ Transitions are labeled with the variables ▶ Automaton accepts solutions to the system. ▶ Can count the number of solutions.

  12. 7 / 26 Introduction Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application Transition Automata . . . . . . . . . . . . . . . . . . . . . . Carry transitions for x ⊕ 𝛦 = x ⊞ 𝜀 . The edges are indexed by 𝛦, 𝜀, x 0,0,0 1,0,1 0,0,1 0,1,0 1,1,0 0,1,1 1,1,1 . . . . . . . start 0 1 1,0,0 We use automata to study Ssystems: [Mouha  al. , SAC 2010] ▶ States represent the carries ▶ Transitions are labeled with the variables ▶ Automaton accepts solutions to the system. ▶ Can count the number of solutions.

  13. 8 / 26 Introduction Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application Decision Automata . . . . . . . . . . . . . . . . . . . . . . Carry transitions for x ⊕ 𝛦 = x ⊞ 𝜀 . The edges are indexed by 𝛦, 𝜀, x 0,0,0 1,0,1 0,0,1 0,1,0 1,1,0 0,1,1 1,1,1 . . . . . . . start 0 1 1,0,0 ▶ Remove x from the transitions ▶ Can decide whether a given 𝛦, 𝜀 is compatible. ▶ Convert the nondeterministic automata to deterministic (optional).

  14. 8 / 26 The edges are indexed by 𝛦, 𝜀 Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application Decision Automata Introduction . . . . . . . . . . . . . . . . . . . . . . Decision automaton for x ⊕ 𝛦 = x ⊞ 𝜀 . 0,0 1,0 0,0 0,1 1,1 0,1 1,1 . . . . . . . start 0 1 1,0 ▶ Remove x from the transitions ▶ Can decide whether a given 𝛦, 𝜀 is compatible. ▶ Convert the nondeterministic automata to deterministic (optional).

  15. 8 / 26 The edges are indexed by 𝛦, 𝜀 Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application Decision Automata Introduction . . . . . . . . . . . . . . . . . . . . . . Decision automaton for x ⊕ 𝛦 = x ⊞ 𝜀 . 1,0 0,0 1,1 0,1 1,1 0,1 . . . . . . . . . . . start { 0 } { 0 , 1 } { 1 } 0,0 1,0 ▶ Remove x from the transitions ▶ Can decide whether a given 𝛦, 𝜀 is compatible. ▶ Convert the nondeterministic automata to deterministic (optional).

  16. 9 / 26 build_fsm -e "V0+P0 == V0^P1" -d -g | dot -Teps Third NIST SHA-3 conference S-system Analysis ARXtools: A toolkit for ARX analysis Differential characteristics G. Leurent (pres: P.-A. Fouque) Application Our Tool Introduction . . . . . . . . . . . . . . . . . . . . . . 1 Automatic construction of the automaton from a natural expression Useful to study properties of the system 11 00 01 10 11 10 0 1 2 00 01 2 C functions to test compatibility, count solutions, or solve systems

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend