r/cryptography • • 3h ago

AES algorithm

Hello,

I am trying to dig deeper about AES algorithm and how it replaced DES. The keys applicable is 256,128, etc some available keys.

How it works from inside.
Is the key is the most important thing to secure.
How diffusion and confusion are implemented in DES.
What are attack vectors for DES and how usually the key is stored ?

Please advise

0 Upvotes

5 comments sorted by

6

u/_-TECHNiCiAN-_ 2h ago

Big vouch for this one

https://youtu.be/NHuibtoL_qk

3

u/nic0high 1h ago

Yeah, Christof's lectures (and the associated book "Understanding Cryptography") are a great starting point

1

u/nicuramar 2h ago

Wikipedia. Follow sources from there.

1

u/pint 2h ago

literally anything but ask on a forum

0

u/Puny-Earthling 1h ago

AES is kinda like an evolution on top of DES. Sub-bytes and row shifts are different, but they both had an S-box style permutation. Round keys, so the key goes through rounds with the cipher text. Key storage is a completely different question to what key operations happened. Also key storage fundamentally hasn't got much to do with encryption. You can store a key in a barcode tattooed to your forehead if you want.

DES also had this weird discard bytes where it would discard the first or eighth bit.. or both.. I can't recall exactly, and it's somewhat confusing because DES had 56-bit keys, 64-bit blocks, and the compression dropped it to 48-bits and the expansion pushed it back up to 64... Annoyingly I used to remember how to do DES in my head, but I'd need to look at a reference again.

If you can know how to HEX into binary and then learn what XOR is and how to do it you can basically do DES or AES on paper.. Get a lot of paper though I guess.