3 ms·
For new deployments/protocols, is there any reason to use RSA? Is RSA (mostly?) about legacy support nowadays?
by throw0101c 2y ago
For new deployments/protocols, is there any reason to use RSA? Is RSA (mostly?) about legacy support nowadays?
- bux93 2y agoFor new protocols, go with X25519MLKEM768, then it's quantum proof as well.
- daneel_w 2y agoTo my understanding, even with Shor's algorithm, RSA is quantum-resistant when applying sufficiently large numbers such that the quantum computer used to locate the prime must be "sufficiently larger", i.e. a cat and mouse game of sorts until some major breakthrough comes along. I agree with simply moving to Ed25519 and X25519/ML-KEM etc.
- honzaik 2y agowell, it depends on the size of the quantum computer. of course you can make large enough RSA keys (depends whats your security margin/assumptions) but the problem is that the size/computational increase is exponential whereas the solving speed scales polynomially. https://eprint.iacr.org/2017/351 https://eprint.iacr.org/2017/351
- maginx 2y agoThe size/computational complexity of usage also only grows as a polynomial with RSA. But even with this in mind, a quantum computer that can crack in polynomial time is still problematic. While you can increase the key size, the operator of the quantum computer could enlarge his computer, a true cat-and-mouse game. Unlike the current situation where usage complexity grows as a polynomial, while cracking grows exponentially. This difference is the reason why we can pick key sizes where signing/decryption takes a millisecond while cracking it takes (presumably) billions of years.
- wolf550e 2y agoEd25519 has been recommended over RSA for many years, post-quantum stuff is recent. RSA should only be used to support old protocols like webpki certificates.
- upofadown 2y agoRSA is faster than elliptic curves for signature verification and encryption. It is one of the oldest methods (half a century) which suggests that it could be a good choice when you need the lowest possible chance of some discovered weakness. It can be used for both signing and encryption (but not with the same key pair).
- maginx 2y agoI still see a lot of RSA especially for encryption. While ECC can be used for encryption it is more convoluted and much less supported in hardware, software etc. than RSA decryption/encryption.
- thayne 2y agoFIPS 140-2 Compliance. FIPS 140-3 adds support for ECC, but it is relatively new, and there aren't a lot of modules that have been certified for it yet, so depending on you your environment and requirements you might still need to use RSA. Or you are doing a new deployment that needs to be compatible with something that only supports RSA.