Coder Social home page Coder Social logo

atreff / whitebox_dca Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 44 KB

C++11 Implementation of DCA attack.

License: GNU General Public License v3.0

C++ 69.52% C 27.70% Gnuplot 2.78%
differential-power-analysis difference-of-means whitebox-cryptography

whitebox_dca's Introduction

How to compile

You need a C++ compiler capable of C++11. If you're using g++, the compilation step may look like: g++ -std=c++11 main.cpp utils.cpp dca.cpp -O2 -o dca for the original DCA attack or g++ -std=c++11 main.cpp utils.cpp dca_new.cpp -O2 -o dca-new for the updated DCA attack.

Usage

  1. Use existing tools like the trace_it.py script and daredevil from the SideChannelMarvels to obtain software execution traces (you need the .input and .trace files)
  2. if you're interesting in persistent stored output data, create a directory called graph_out.
  3. run ./dca[-new] <tracename.trace> <tracename.input> <number of traces> <byte>
  4. after the run, you'll find the corresponding output data in graph_out/
  5. now you can process these data files using the gnuplot-scripts that can be found in the gnuplot/ folder. You have to modify them by yourself to match the correct file names for input and output (and maybe you would like to limit the range etc.)

References

You may want to have a look at https://eprint.iacr.org/2018/301.pdf to see the generated traces in action.

whitebox_dca's People

Contributors

atreff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.