Code Monkey home page Code Monkey logo

16b-gfs-as-search's Introduction

16-branch GFS Active S-box Search

Note: If you use/modify the code in this repository for your own research and publish it, please cite the paper:

J. Chen, J. Teh, Z. Liu, C. Su, A. Samsudin, Y. Xiang, "Towards Accurate Statistical Analysis of Security Margins: New Searching Strategies for Differential Attacks," IEEE Transactions on Computers, Vol. 66:10, 2017. DOI: https://doi.org/10.1109/TC.2017.2699190


Description:

The following program will generate a file that contains truncated differences, the number of rounds, the number of AS and permutation pattern for each sample. Special thanks to Yeoh Wei Zhu (https://github.com/yeohweizhu) and Lee Ting Rong (https://github.com/trlee) for earlier versions of the code. Note that the program may have redundant code from another full differential search algorithm.

All parameters to control the program are under the "Control Panel" in common.h.

NROUNDS = Number of block cipher rounds

HW_LIMIT = Maximum hamming weight of random samples generated for testing

MAX_SAMPLES = Maximum number of samples to generate before automatically stopping the search

SBOX_BOUND = Set bound to current AS + SBOX_BOUND. If a tight bound is required, set to 0.

SBOX_ERROR = Set to SBOX_BOUND when generating dataset for machine learning. Set to around 2 if trying to find min AS

SAMPLE_LIMIT = Limit number of samples per input difference (to get a wider variety of inputs)

perm[16] = The permutation involved in the GFS. Note that the permutation takes into account that the MSB is 15 and LSB is 0 - {15,14,...,2,1,0}.

Output file columns : Input truncated diff, output truncated diff, active s-boxes , number of rounds, permutation pattern (as 16 columns where the LSB is 0 and MSB is 15 - {15,14,13,...,2,1,0)

16b-gfs-as-search's People

Contributors

jesenteh avatar

Watchers

 avatar

Forkers

wbeaching

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.