News for hackers. Stuff that matters.
Re:An Empirical Study of Vulnerabilities in Cryptographic Li... by technion on Sunday July 25, 2021 @08:08AM (#27948571)
I think we need to reconsider the definition of a "vetted library". It's only because I spend a lot of time in this space I'm aware of at least three different libraries that default to unauthenticated CBC mode, and choose key sizes magically based on input (hint: it never ends up what people expect).

But those libraries show up recommended on forums and subreddits everywhere. And if you inherit such a system and try to do something like "add an HMAC", you'll be cursed at for "rolling your own crypto" when you should apparently be trusting the library.

Re:An Empirical Study of Vulnerabilities in Cryptographic Li... by rocqua on Sunday July 25, 2021 @10:17AM (#27949329)
The main library I know about is libsodium. Is that one of the 3 libraries you were talking about?
Re:An Empirical Study of Vulnerabilities in Cryptographic Li... by SAI_Peregrinus on Sunday July 25, 2021 @10:34AM (#27949449)
It doesn't use CBC mode or dynamically pick key sizes, so it can't be.
Re:An Empirical Study of Vulnerabilities in Cryptographic Li... by technion on Sunday July 25, 2021 @05:38PM (#27953146)
Try asking about crypto on /r/webdev, /r/javascript or anything similar. You'll never see libsodium put forward.