elektrischermoench / cryptanalysis

Cryptanalysis of AES cipher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cryptanalysis

Cryptanalysis of AES cipher based on https://www.davidwong.fr/blockbreakers and the great lecture crpytography from Prof. Leander (Ruhr University Bochum).

Example call:

$ python3 ./cryptanalysis.py
Prepare for Sqare attack: 
Original key: 
 [[0x2b 0x28 0xab 0x9]
 [0x7e 0xae 0xf7 0xcf]
 [0x15 0xd2 0x15 0x4f]
 [0x16 0xa6 0x88 0x3c]]
Cracking the last round key ...
Hits: 
0x0 0xef 0x1 0x44 0x2 0xa5 0x3 0x41 0x4 0xa8 0x5 0x52 0x6 0x5b 0x7 0x7f 0x8 0xb6 0x9 0x71 0xa 0x25 0xb 0x3b 0xc 0xdb 0xd 0xb 0xe 0xad 0xf 0x0 Key found: 
 [[0x2b 0x28 0xab 0x9]
 [0x7e 0xae 0xf7 0xcf]
 [0x15 0xd2 0x15 0x4f]
 [0x16 0xa6 0x88 0x3c]]

About

Cryptanalysis of AES cipher


Languages

Language:Python 100.0%