Giter Club home page Giter Club logo

genericcryptanalyzer's Introduction

GenericCryptanalyzer

A generic library used for differential cryptanalysis of block ciphers written in C++.

About

GenericCryptanalyzer is my Bachelor's Thesis project that implements a automated discovery search algorithm of differential characteristics of a block cipher. It uses a branch-and-bound algorithm inspired by Matsui’s Search Algorithm For The Best Differential/Linear Trails, presented in [1].

Motivation

Differential cryptanalysis was introduced in [5] and Linear cryptanalysis was first introduced in [7]. Over the years theese techniques have proven to be one of the most efficient techniques in searching vulnerabilities in block ciphers.

A good tutorial on both differential and linear cryptanalysis can be found in [6].

As computational power and interest in safe cryptographic protocols has increased over time, automated search for differential and linear characteristics has become a must for both cryptologists and cryptanalysts. This tool aims to help in automated discovery of such vulnerabilities in order to save research time.

Installation

Prerequisites

In order to install GenericCryptanalyzer you will need to have installed the following C++ libraries:

  • boost

Examples

Some examples of how to interract with the library can be found in examples/.

Documentation

The documentation for this project can be found here.

Further Improvements

  • Finish adding docs for src/builders/
  • Add more unit tests
  • Implement optimisations presented in [2], [3], [4] to improve performance
  • Add more types of boxes to support more ciphers
  • Add support for linear cryptanalysis

References

  1. Mitsuru Matsui - On Correlation Between the Order of S-boxes and the Strength of DES - Mitsuru Matsui
  2. Improving the Search Algorithm for the Best Linear Expression - Kazuo Ohta, Shiho Moriai & Kazumaro Aoki
  3. Best Differential Characteristic Search of FEAL - Kazumaro Aoki, Kunio Kobayashi & Shiho Moriai
  4. Speeding Up the Search Algorithm for the Best Differential and Best Linear Trails - Zhenzhen Bao, Wentao Zhang & Dongdai Lin
  5. Differential Cryptanalysis of DES-like Cryptosystems - Eli Biham & Adi Shamir
  6. A Tutorial on Linear and Differential Cryptanalysis - Howard M. Heys
  7. A New Method for Known Plaintext Attack of FEAL Cipher - Mitsuru Matsui & Atsuhiro Yamagishi

genericcryptanalyzer's People

Contributors

gabitulba avatar

Stargazers

Twilight-Dream-Of-Magical avatar Vlad Malagar avatar  avatar Mihail Feraru avatar

Watchers

 avatar

genericcryptanalyzer's Issues

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.