6 ms·
The author of this article has misunderstood the piece it's responding to, and doesn't appear to be familiar with the literature. For instance, this response is
by tptacek 5y ago
The author of this article has misunderstood the piece it's responding to, and doesn't appear to be familiar with the literature. For instance, this response is dubious about the security implications of primality testing bugs, claiming that Prime & Prejudice --- famously relevant to RSA --- had no apparent connection to it (presumably they read the abstract and not the study itself, which repeatedly mentions RSA). It just goes on like this.
This is part of a pattern with this author. They're extremely attached to PGP. PGP uses RSA. Therefore: RSA must be fine. Recurrence of the same pattern: PGP doesn't use authenticated encryption. Therefore, authenticated encryption must not be important, or maybe it's even a negative. There's another example somewhere in the comments here about forward secrecy being overrated. (I can cite, but you should just take my word for it that these takes have been shared here).
It's frustrating, because the pattern isn't super clear in isolation (though this response actually mentions PGP as the impetus for the response) and, if you don't work in the field, it might not be clear how far these takes stray from cryptographic engineering orthodoxy. It's also frustrating because in general, we're not supposed to write things like this on HN --- a list of floridly bad previous comments from this author would be way over the line --- so one has to sort of tiptoe around the edges of the guidelines to find a way to describe what's going on here.
Anyways, caveat lector.
Hats off for describing Boneh's fault attack paper as "completely theoretical", though! Bold!
- throwaway81523 5y agoYeah I think you are right, the article is weak. Even the first implementation advice it gives doesn't look right to me, if interpreted the obvious way: > Normally for RSA you pick 2 random numbers and then find a prime close to each. I.e. if you pick a number and then search upwaard til you find a prime, that gives a non-uniform distribution on the primes in that range. You instead want to pick a random number, and if it's composite, throw it away and pick another random number til you get a prime. Then repeat to get second prime.
- kwantam 5y ago"Pick a random odd number and keep adding 2 until you find a prime" is, perhaps unintuitively, essentially fine for RSA key generation---under mild conditions, the security loss is single-digit bits at best. See Abboud and Prest, "Cryptographic Divergences: New Techniques and New Applications", SCN 2020 [1], Section 4.1. (This is a relatively recent result. And as I mentioned in my other comment, this is not a defense of the article!) [1] https://eprint.iacr.org/2020/815 https://eprint.iacr.org/2020/815
- throwaway81523 5y agoInteresting. I'll look when I get a chance, but it sounds like deep math. The distribution of primes empirically seems well approximated by Cramér's random model, but it's incredibly hard to know anything for certain. For example, whether there are infinitely many twin primes is a famous open problem.
- kwantam 5y agoCan you expand on the applicability of Prime and Prejudice [1] to RSA key generation? As far as I can tell, the two have nothing to do with one another. The point of the Prime and Prejudice paper is, in effect, that the Miller-Rabin primality test should only be applied to random prime candidates, not adversarially chosen ones. The reason is: for a random composite, each M-R iteration has probability roughly 1/4 of revealing that the number is indeed composite. But it is possible to find composites that fool M-R with high probability. The upshot is: if an adversary is proposing primes to you, be very careful about using M-R! For RSA key generation, unless you're worried about your RNG (in which case you're sunk anyway, to a first approximation), candidate primes are not adversarially chosen. So, as this article says, it does not appear that Prime and Prejudice is an issue for RSA key generation. As further evidence for this, the Prime and Prejudice paper does not talk about vulnerabilities in RSA key generation. The issues that it describes have to do with validating prime-field DH parameters provided to a client by a potentially adversarial TLS server. As far as I can tell, the P&P paper only mentions RSA three times: twice as name-checks and once in the name of a library. This isn't a defense of any other claim in the article. But as far as I can tell, P&P is not an issue in the context of RSA key generation. [1] https://eprint.iacr.org/2018/749 https://eprint.iacr.org/2018/749
- upofadown 5y ago>Hats off for describing Boneh's fault attack paper as "completely theoretical", though! Bold! You stopped quoting too soon. I described it as a "completely theoretical hardware attack". In practice it would have to be some sort of glitch attack capable of causing actual bit flips. My point is that it has nothing to do with RSA implementation as it was described in the article.