3 ms·
Wow, is this really going to be the top comment. This library has been around since 2008 and chances are you are using software that includes it right now, e.g
by 1vuio0pswjnm7 4y ago
Wow, is this really going to be the top comment.
This library has been around since 2008 and chances are you are using software that includes it right now, e.g., if your web browser used djb-derived cryptography included in your browser when connecting to HN.
If I wrote software using djb code and made money from it, and djb asked me for a percentage, then I would happily pay. The chances of that happening are probably nil, particularly the first part. Alternatively, if I wrote software using djb code and he asked me to refrain from doing something, then I would probably comply. He has a strong reputation for being right. Again, the chances of being asked for anything seem to be nil anyway.
Assuming devurandom.c, i.e., randombytes(), is used in djb-authored cryptography, which itself or close derivatives are now used widely, how many of the folks working on the projects listed at the web pages below are using public domain djb code without a license (I don't know the answer, I'm asking a question). One might guess by looking at these lists that the "status quo" is to accept djb's public domain designation.
https://ianix.com/pub/curve25519-deployment.html https://ianix.com/pub/curve25519-deployment.html
https://ianix.com/pub/ed25519-deployment.html https://ianix.com/pub/ed25519-deployment.html
https://ianix.com/pub/salsa20-deployment.html https://ianix.com/pub/salsa20-deployment.html
https://ianix.com/pub/chacha-deployment.html https://ianix.com/pub/chacha-deployment.html
Take OpenSSH for example.
https://raw.githubusercontent.com/openssh/openssh-portable/master/crypto_api.h https://raw.githubusercontent.com/openssh/openssh-portable/m...
OpenSSH uses djb cryptography for generating ed25519 keys, among other things. That uses randombytes() as in crypto_api.h above.
djb's randombytes() is simply a wrapper around /dev/urandom, OpenSSH's randombytes() in ed25519.c is a wrapper around arc4random_buf(). arcrandom_buf() is a wrapper around arc4random(). arc4random() uses djb cryptography placed in the public domain.
https://raw.githubusercontent.com/openssh/openssh-portable/master/openbsd-compat/chacha_private.h https://raw.githubusercontent.com/openssh/openssh-portable/m...
No idea what software the parent writes but as an end user I would prefer to avoid it since apparently they have to avoid widely used, publicly vetted code because it's in the public domain.
- remram 4y agoIf you don't care whether it's public domain, that's fine. That seems completely orthogonal to the discussion of whether that works, though.