4 ms·
I'm not qualified to challenge Tomer Ashur's analysis of Speck and Simon, and I don't think ISO has any business standardizing those algorithms, so Ashur and I
by tptacek 8y ago
I'm not qualified to challenge Tomer Ashur's analysis of Speck and Simon, and I don't think ISO has any business standardizing those algorithms, so Ashur and I reach the same conclusion about the NSA ciphers.
But I think Ashur is overstating his case.
Ashur repeatedly alludes to the potential for backdoors in Simon and Speck, but never really engages that subject in any detail. That's unsurprising, because the NSA ciphers are both extremely simple, streamlined block cipher designs. There isn't a lot of room in them to insert a "backdoor". Ashur notes that these ciphers were sponsored by the same person that sponsored Dual EC. But Dual EC was self-evidently compatible with backdoors (that was, weirdly, a reason some people --- myself included! I was wrong! --- thought it couldn't be --- the tradecraft was just too clumsy). Dual EC is a PKRNG; embedded in the design is a public key for which we were expected to trust no private key was known. You can't really say that about Speck, or even Simon with its U, V, and W matrices.
Could you deliberately weaken something pretty close to a trivial ARX cipher? I'm sure you could. But NSA doesn't want arbitrary weaknesses; it wants NOBUS backdoors, where it gets cryptographic protection for its own access. It's hard to see how you'd get there with a design as simple as Simon's.
As with previous NSA cipher debates, Ashur takes NSA to task for low security margins. Why so few rounds? Why such simplistic designs? Well, that should be easy to answer: Simon and Speck are "lightweight" ciphers intended for embedded designs. They come with variants with 32-bit block sizes! This also addresses a concern I saw on this HN thread, that NSA was trying to surreptitiously replace AES with a breakable cipher. No, they're not. Even if these had been standardized, you shouldn't be using them; they have a highly specific purpose.
I think the background to this drama is mostly political. I get the sense that NSA has never really complied with the norms of academic cryptography (they're openly derisive of it). Standards groups have, in the past, given some deference to NSA's "alternative norms". That ended with Dual EC, and Simon and Speck are the first post-Dual EC ciphers where NSA is being told they're going to have to follow academic cryptography's norms. Good!
But I'd be careful reaching any conclusions past that.
Corrections welcome!
- consp 8y ago> Well, that should be easy to answer: Simon and Speck are "lightweight" ciphers intended for embedded designs. You are providing rationale which the NSA is, according to Ashur, unable to provide in the design documentation/rationale. So I think you are missing the point he's trying to make: If you can't tell me why and are doing hand waving you are either incompetent or deliberately dismissive in which case you should not be trusted.
- dfox 8y agoI think that part of the issue is that people (probably including the WG2) hear NSA and then ignore the lightweight part. To some extent the lightweightness implies lower standard for the security margins. This is in this case compounded by the fact that WG2 had thrown out most of the truly useful NSA recommended Speck/Simon parameter combinations (things like 32b blocks) even before the current turmoil on the basis that they obviously provide insufficient level of security, which is obviously true for general purpose block cipher, but not for lightweight ("IoT-ish" ;)) applications. On the other hand I somewhat wonder what motivation exactly NSA had for trying to push these algorithms through ISO.
- notveryrational 8y agoNo. They hear the lightweight part. The author clearly understands this. It's the actual designs of the cipher, security margins, motivations for the key schedule, and others he has an issue with. The issues include lies and misleading omissions in publications.
- tptacek 8y agoNo, if you re-read my first sentence, you'll see that I'm not suggesting we should trust NSA.
- bo1024 8y ago- I wonder how the NSA's compute resources translate into an inherent advantage over academics in terms of ability to break these codes. Especially if we are talking about pushing the limits of small margins. - I don't think it's fair to say the background is "political" if NSA is currently not cooperating with the process. Calling it political makes it sound like their treatment is a function of the broader context or history, but it sounds like they are being treated fairly given how they have acted in this situation.
- tptacek 8y agoIt's political because NSA never complied with academic norms, but received deference before the BULLRUN scandal.
- pdkl95 8y ago> But NSA doesn't want arbitrary weaknesses; it wants NOBUS backdoors The NSA's handling[1] of differential cryptanalysis suggests they could consider an entire analysis technique to be (pseudo-)NOBUS. If they believed they were the only people that knew of a new cryptanalysis technique, I could see them recommending a cypher that is weak to it. (This is only a hypothetical concern. I have not studied the specifics of Speck/Simon) [1] Don Coppersmith, in his 1994 paper[2]: "After discussions with NSA, it was decided that disclosure of the design considerations would reveal the technique of differential cryptanalysis, a powerful technique that could be used against many ciphers. This in turn would weaken the competitive advantage the United States enjoyed over other countries in the field of cryptography." [2] (pdf) http://simson.net/ref/1994/coppersmith94.pdf http://simson.net/ref/1994/coppersmith94.pdf
- tedunangst 8y agoBut didn't they do the exact opposite, and strengthen DES against the attack?
- namibj 8y agoBut they did not say why they wanted the S-Boxes changed.
- lvh 8y agoThat makes sense even if you assume the NSA is adhering to its mission: if you don't publicly disclose the existence of differential cryptanalysis and the enemy hasn't figured it out the enemy may standardize on a weak cipher. The NSA wins in both of its missions: make the US more secure, make everyone else less secure.
- tptacek 8y agoThis argument doesn't work. The NSA is pretty universally believed to have optimized the DES s-boxes for resistance to differential cryptanalysis. Obviously, at the time differential was a NOBUS weakness --- NSA would have deployed it against competing cipher designs, which is sort of the whole point of employing cryptanalysts in the first place --- but it was never a NOBUS backdoor in NSA's own design.
- cameldrv 8y agoMaybe. NSA wants algorithms to be secure against anyone but them. Perhaps this algorithm cannot contain something in the form of Dual EC_DRBG, where they're effectively handing out a public key as part of the algorithm and they have the private key. However, it could also be that there are particulars of the algorithm that make hardware that the NSA has and doesn't expect anyone else to be able to obtain, work especially well.
- tptacek 8y agoFor us, "IOT" means "Internet-connected refrigerator". From NSA's vantage point, though, it includes billions of dollars in embedded industrial equipment that is taking advantage of the same technology that's allowing us to wire up our toasters. If that equipment is insecure simply because vendors can't get AES working on a PIC or MSP embedded SOC, you have a nation-scale problem. It then starts to make sense that they'd work to provide an "officially blessed" cipher that can work in those environments. We also forget that though we don't trust NSA (and shouldn't), American industry sure does.