Code Monkey home page Code Monkey logo

aes's Introduction

I/O Testing

  1. Playing with inputs and without modifying or looking at the code, try to identify different errors that could occur using the reference implementation given in ref_aes.c

Randomness Testing

  1. With a key of your choice (you can use the one hardcoded), statistically test the quality of the ref_aes.c implementation using it as a random number generator with the dieharder cli. You can inspire/use the code in comments as base of your test.

  2. (Bonus) Fixing the AES implementation provided, retry the diehard test to make it pass everything (with 1k samples).

Material:

Key Recovery

Using only the SBox look-up table given in ref_aes.c, the following state input of the AES algorithm, and the following internal output taken after the first SubBytes in AES ( ARK + SB done by the algorithm), propose an algorithm that recovers the corresponding round key (round key 0) in a efficient manner.

Material:

  • Input: 0xf69f2445, 0xdf4f9b17, 0xad2b417b, 0xe66c3710
  • Output (after 1 addroundkey and 1 (proper) subbytes): 0x5DDC4AAF, 0x415C0534, 0x1530EF67, 0x9872021C

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.