"Don't roll your own crypto" - an advice with a muddy purpose and a clear outcome:
- people treating cryptography like an arcane magic and a scarce pool of experts
- no pressure to make standards that are secure _and_ easy to implement
I guess the point is that cryptography is both difficult and dangerous, but you two are making the excellent point that popular vendors are not obviously reliable at succeeding to do a better job than an expert's bespoke one.
At the industrial scale, I suppose openbsd's funding exists because Theo is personally infinitely more reliable than any major trillion dollar company, or an industry consortium of rich companies.
jd do you know context about sharplispers ironclad?
@screwlisp @kirtai @jackdaniel i guess a better saying would be "know when rolling your own is ok"?
and often you shouldnt, but sometimes its the right choice?
Many complex domains require experience that is gathered by "rolling your own", preferably by adhering to existing standard - and then fixing it.
I think that emphasizing challenges like Crypto Pals and working on intelligible standards is the way to make rolling your own crypto more secure, and raising the bar of security universally.
To rephrase: "if it is interesting to you, go ahead and roll your own - but mind these gotchas. If you are not interested, then here are off-the-shelf known solutions." -- less arrogant with better outcome.
EDIT and there are of course use cases, where failures are critical. And that applies to cryptography and, say, databases -- you'd use known battle-proof crypto and database engines in these projects. But nobody says without any context "don't roll your own database".
Edit2:
1. make educational challenges like Crypto Pals
2. work on intelligible standards
3. work on adversarial test suites
@jackdaniel
Actually, "don't roll your own database" is a common adage.
I kind of take your point- like seeing people (possibly yourself) Do Fourier Transforms signifiantly wrong is a comparably big deal to doing crypto wrong, but crypto is treated as worse because people trust password protection.
Viz openssl, while openbsd created openssl, its development was taken over by Industry, and then after heartbleed, openbsd created its own openssl implementation, libressl.
@jackdaniel
However the existence and licensing of libressl basically means big improvements from libressl get upstreamed into the openssl implementation it deprecated anyway, and then it appears to be very hard to even know what is happening in the crypto space.
A failure example would be that wordpress shopping plugin's Troubles a few years ago.
@4censord @kirtai
@jackdaniel
In embeddable common lisp's case, if you had hundreds of people working for you, I suppose what we might want is for cryptography choice to be a compilation flag? Like openssl, libressl, home-rolled, .. . But I don't know how that relates to the design principles of ECL off the top of my head. Like choosing a garbage collector I suppose.
@4censord @kirtai
I'm not going to roll my own crypto, because I'm not interested in that. I'd be happy to use a good off-the-shelf FOSS solution. My point is about how flawed and self-defeating is the mentioned advice.
If I were to include SSL support in ECL, I'd be looking for a secure library that can be linked both statically and dynamically, without additional dependencies (self-contained).
Another thing, and I can't stress this enough, is that complicated standards make bootstrapping new ecosystems enormously complex.
I.e you can write a very small web server and it will work great with not that much effort. If you add TLS to the mix, then you have a problem .
@jackdaniel That's BTW my main gripe with ATproto. It has many nice features for a real "Web 2.0", but also a high entry barrier due to tech complexity. Including some crypto.
@screwlisp @4censord @kirtai@tech.lgbt