Giter VIP home page Giter VIP logo

algebraic-attacks--ece6745_project's Introduction

This final project for ECE6745 aims to demonstrate algebraic attacks on a 32 bit block cipher circuit through Grobner Basis techniques.

FILE DESCRIPTION

converter.cpp This file converts ASCII input to polynomial representation. block_cipher.lib This file contains functions that convert plaintext to ciphertext. Full_Block_Cipher.sing This file generates the Grobner basis for the given block cipher with an input of plaintext and a key.

STEPS TO RUN

STEP1: Compile converter.cpp using the following command:

g++ converter.cpp -o convert

STEP2: In Full_Block_Cipher.sing

2a. Set the cipher text on line 56, position 46. (Limit 4 characters) 2b. Set the key on line 63, position 38. (Limit 4 characters)

STEP3: Execute Full_Block_Cipher.sing in Singular

KEY RECOVERY

STEP1. In Singular, execute the command:

G; // Look for elements containing key bits (k_[0:3]) and take note

STEP2. In Singular, execute the command:

fact_list(G); // Returns factored univariate members of the GB

STEP3. Evaluate key polynomials

STEP4. Test recovered key solution to see if you get the same ciphertext given the same plaintext input.

algebraic-attacks--ece6745_project's People

Watchers

 avatar

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.