r/cryptography • u/redado360 • 1d 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
11
u/_-TECHNiCiAN-_ 1d ago
Big vouch for this one
https://youtu.be/NHuibtoL_qk
5
u/pint 1d ago
literally anything but ask on a forum
4
u/nicuramar 1d ago
Wikipedia. Follow sources from there.
2
u/ScottContini 1d ago
I believe the best attack on DES was linear cryptanalysis, which was better than brute force but required lots of known plaintexts.
DES was actually pretty good as far as we know, other than a key size of 56 bits which was too short. Researchers questioned the key size in the early days, by 1999 the DesCracker hardware was built to break it. By modern standards, the block size is too small which brings a risk when great volumes of data are encrypted.
AES brings larger key lengths and block sizes, but it also comes with proofs to be resistant to linear and differential cryptanalysis. It’s an elegant design and has held up over more than 25 years of study.
1
u/What-a-Crock 1d ago
This video was made 7 years ago and might be a bit outdated but is very informative
1
u/Inf0x2A 17h ago
Maybe this is helpful: https://pqc.infsec.de/aes.html#reiter1
1
u/Puny-Earthling 1d 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.
1
u/Jamarlie 1d ago
Why do people ask questions here about the basics of cryptography? This is something that is WIDELY available with a single Google-Search.