3 ms·
So why don't the crypto libs at least throw a warning that "what you're doing is nonsensical" if not just reject an exponent of 1 outright? We hammer on people
by ams6110 13y ago
So why don't the crypto libs at least throw a warning that "what you're doing is nonsensical" if not just reject an exponent of 1 outright? We hammer on people not to invent their own crypto, yet here someone is, using the RSA lib, and still doing it wrong.
- MichaelSalib 13y agoThey're not using a crypto library, they implemented RSA from scratch.
- paulgb 13y agoThey're using a library (M2Crypto) to generate the an RSA key at least, so ams6110's point stands.
- MichaelSalib 13y agoOh. Sorry about that. I should have looked at the diff more carefully.
- dekz 13y agoBecause crypto libs can't see the future. I'm struggling to think of a case where using cryptographic primitives should be bubblewrapped. Don't use the primitives if you don't know what you're doing.