From the course: Learning Assembly Language

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Decryption function

Challenge: Decryption function - Python Tutorial

From the course: Learning Assembly Language

Start my 1-month free trial

Challenge: Decryption function

(upbeat music) - [Instructor] Now you know how to encrypt using AES, have a look at the decrypt instructions aesdec and aesdeclast in the Intel Instruction Reference in your exercise files. The same key expansion is used for decryption. Start by XORing the cipher with the last set of expanded key material and then work backwards through the key material, undoing the encryption. For each of the middle rounds, the 16 bytes of key material will require modification using the aesimc instruction. Take a few minutes to look at this and see if you can code up the decryption routine and test. Then come back and look at my solution.

Contents