Git Product home page Git Product logo

aes-dpa-poc's Introduction

AES Differential Power Analysis POC

This repository is forked from tiny-AES-C and add POC to demonstrate AES Differential Power Analysis(=DPA).

Since last round of AES encryption doesn't have MixColumn, there are direct relationship between output cipher text and AES key.

To be more specific, if we can have a hamming-distance between output cipher text and last block of expand key for a large number of pattern, we can guess actual AES key. AES key can be calculated back from the last block of expand key.

DPA Requirement

To guess the actual AES key by DPA, the following conditions are required:

  • a number of AES operation can be issued to generate for each different output.
  • output cipher text can be observed.
  • hamming-distance can be observed.

Detecting actual hamming-distance might be difficult but if there is relationship between power consumption and hamming-distance and if we can observe power consumption, we can use it instead of hamming-distance.

This POC is running on the ideal condition which can detect actual hamming-distance directly by modifying AES function, but if we can observe power consumption, same strategy can be adopted.

run

$ make
$ ./dpa.elf

aes-dpa-poc's People

Contributors

kokke avatar otamajakusi avatar torfinnberset avatar bricke avatar rkeene avatar dklayer avatar lucifurtun avatar nickaknudson avatar pjunni avatar raptorfactor avatar bitdust avatar mb300sd avatar namreeb 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.