Skip to content

Equations for complexity of state-recovery backtrack of ciphers RC4 and Spritz

Notifications You must be signed in to change notification settings

mgabris/state-recovery-equations

Repository files navigation

state-recovery-equations

Sage code for solving complexity estimate equations for state-recovery attacks on ciphers RC4 and Spritz.

Details can be found in our paper.

Code organization

Code is organized simply: file compute.sage contains code for solving equations (with exception of Spritz special equations, where more elaborate way is needed) provided how to generate equations, variables used in them and their boundary conditions.

Files *_equations.sage contain functions to generate equations, variables and boundary conditions for particular equation type. Each file contains brief code to compute complexities from equations.

Usage

For particular equation, just invoke sage with appropriate file.

$ ./sage rc4_equations.sage

Worksheets

There is also Sage worksheet file equations.sws and jupyter file equations.ipynb containing all above code, it may be easier to experiment there.

About

Equations for complexity of state-recovery backtrack of ciphers RC4 and Spritz

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published