Code Monkey home page Code Monkey logo

aesfix's Introduction

AESFix 1.0.1 (2008-07-18)
By Nadia Heninger and J. Alex Halderman

This program illustrates a technique for correcting bit errors in an
AES key schedule, as described in Section 5.2 of the research paper:

  J. A. Halderman, S. D. Schoen, N. Heninger, W. Clarkson, W. Paul,
  J. A. Calandrino, A. J. Feldman, J. Appelbaum, and E. W. Felten.
  "Lest We Remember: Cold-Boot Attacks on Encryption Keys."
  Proc. 17th USENIX Security Symposium (Sec '08), San Jose, CA, July 2008.

For more information, see: http://citp.princeton.edu/memory/


This program is a simplified version of our algorithm.  It is limited
to AES-128 key schedules, and it can only correct unidirectional 1->0
bit errors.  For the most part it has been optimized for readability
rather than performance.

The algorithm has these major steps:

1. Given a key schedule containing bit errors, divide the schedule
   into four 7-bit "slices", each of which should be uniquely
   determined by its first four bits.

2. For increasing number of errors w to the key (round 0) bytes:

    a. List possible "decoded" values that could have suffered w
       or fewer unidirectional errors to form the slice.

    b. Consider all the key schedules generated by combinations of
       these decodings.  If one could have decayed into the key
       schedule that we're trying to repair, output it and stop.


USAGE:

aesfix SCHEDULE-FILE

Corrects bit errors in an AES key schedule read from the 
specified hex-encoded file.


SAMPLES:

The samples/ directory contains example input files.  Each is labeled
with the number of bit errors from a correct AES-128 key schedule.

aesfix's People

Contributors

anuxraw avatar

Stargazers

 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.