How I implemented my own crypto
Despite advice to the contrary, I have implemented my own crypto for serious use. Here's how.
This is my personal web site. I write mainly about programming.
Visit loup-vaillant.fr → RSS feedOn Hacker News Dec 2013 – Aug 2023
Security & Privacy 5Software Engineering 4Math & Algorithms 1Life, Learning & Writing 1Programming Languages 1Design & UX 1
Despite advice to the contrary, I have implemented my own crypto for serious use. Here's how.
Chacha20 is a secure, fast, and amazingly simple encryption algorithm. Let's take a look.
So you want to roll your own crypto. Well, be careful. Be very careful.
Efficient elliptic curves tend not to have a prime order. This discusses the problems this causes, and the solutions.
Crypto is often treated like a black art only anointed experts can hope to wield safely. It's not. There are laws, and we can learn them.
Classes encourage pervasive mutable state, provide only an indirect support for closures, and do not support algebraic data types. I'd like to fix that.
Object Oriented Programming died several times already. This time might be the last.