Hackaday: Why You Should Totally Roll Your Own AES Cryptography

jim bell jdb10987 at yahoo.com
Tue Jul 12 22:07:19 PDT 2022


Hackaday: Why You Should Totally Roll Your Own AES Cryptography.
https://hackaday.com/2022/07/11/why-you-should-totally-roll-your-own-aes-cryptography/

WHY YOU SHOULD TOTALLY ROLL YOUR OWN AES CRYPTOGRAPHY
 24 Comments   
   - by:
 Maya PoschJuly 11, 2022   
   - 
 - 
 - 
 - 
 - 

Software developers are usually told to ‘never write your own cryptography’, and there definitely are sufficient examples to be found in the past decades of cases where DIY crypto routines caused real damage. This is also the introduction to [Francis Stokes]’s article on rolling your own crypto system. Even if you understand the mathematics behind a cryptographic system like AES (symmetric encryption), assumptions made by your code, along with side-channel and many other types of attacks, can nullify your efforts.

So then why write an article on doing exactly what you’re told not to do? This is contained in the often forgotten addendum to ‘don’t roll your own crypto’, which is ‘for anything important’. [Francis]’s tutorial on how to implement AES is incredibly informative as an introduction to symmetric key cryptography for software developers, and demonstrates a number of obvious weaknesses users of an AES library may not be aware of.

This then shows the reason why any developer who uses cryptography in some fashion for anything should absolutely roll their own crypto: to take a peek inside what is usually a library’s black box, and to better understand how the mathematical principles behind AES are translated into a real-world system. Additionally it may be very instructive if your goal is to become a security researcher whose day job is to find the flaws in these systems.

Essentially: definitely do try this at home, just keep your DIY crypto away from production servers :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/html
Size: 13214 bytes
Desc: not available
URL: <https://lists.cpunks.org/pipermail/cypherpunks/attachments/20220713/03ce9d97/attachment.txt>


More information about the cypherpunks mailing list