News for hackers. Stuff that matters.
Re:The 3DS Cryptosystem by bostik on Sunday April 10, 2016 @04:42AM (#11465442)
That was an amusing read. The big takeaways are even deliciously quotable:

The irony is that the feature designed to bring more security was the one that completely broke it.

Too much complexity: having lots of blocks that say “AES” and “RSA” in your plan might impress the boss, but it just adds to the attack surface. Always go with the simplest plan that secures against your threat model.

Security is hard to get right, and retrofitting security features into existing systems is ripe with very subtle traps. Add backwards compatibility into the mix and you've probably created a fragile Frankenstein.

Re:The 3DS Cryptosystem by lazaroclapp on Sunday April 10, 2016 @05:01AM (#11465482)
A fact that needs to be remembered when people ask for centralized key escrows and gratuitous backdoors in encryption systems. I know this gets mentioned twice a week now a days in HN, but it literally can´t be repeated enough.
Re:The 3DS Cryptosystem by justifier on Sunday April 10, 2016 @10:29AM (#11466236)
i suppose a handheld gaming device could be considered low consequence on the spectra of encryption use, which may simply answer my own question..

but being someone interested in factorisation i am baffled as to why anyone has or is using rsa

my intended inference is that factoring numbers is deterministically achievable in sub polynomial time, and having your crypto rely on 'it's hard for me it must be impossible for you' reads so sophomoric

Re:The 3DS Cryptosystem by tptacek on Sunday April 10, 2016 @12:28PM (#11466853)
The 3DS is higher stakes than virtually any other cryptosystem. Nintendo spends billions bringing it to market. Game consoles live or die based on third party developer support, and one of the important promises console developers make to entice developers to their platforms is that they will carefully steward those developers IP.

What's more interesting to me is that the 3DS system is nonrenewable. As the author of this post correctly points out, all DRM systems inevitably fall, but they accomplish their commercial purpose as long as that fall happens far enough into the future that the developers make their money. Smart systems trying to employ DRM this way build, from the beginning, mechanisms to refresh and re-complicate their DRM systems on a title-by-title basis.

I actually agree with you "in the large" about RSA (factoring doesn't seem like a hard enough problem anymore), but in the particulars, nobody is breaking RSA-2048 any time soon. Unlike strong curves, though, it seems plausible that RSA-2048 (and beyond) could fall before quantum computing.

Re:The 3DS Cryptosystem by yifanlu on Sunday April 10, 2016 @01:47PM (#11467301)
First, the 3DS mostly uses RSA for code signing, something I didn't really touch on since there's no serious mistakes there. Second, while RSA does not fair well against quantum attacks, as of today, there is still no way of factoring a 2048 bit key that won't take you at least (being generous) hundreds of years (provided no quantum computers). So if you have proof that it's (today) achievable in polynomial time, please email me ;)

But turning the question around, what do you think we should do to achieve asymmetric encryption? If you don't want it to break with Shor, then RSA and ECDSA are off the table. If you want small message size, you can't use Lamport.

Re:The 3DS Cryptosystem by justifier on Sunday April 10, 2016 @03:23PM (#11467712)
if i had that proof an email would be unnecessary, you'd already know :p

to address your question i'll say this, crypto is only interesting to me in securing my own work and because my interests are in number theory that, due to rsa popularity, would incidentally affect crypto

i lack an intimate familiarity with the optimisation requirements of rolling production crypto, meaning i can comfortably ignore any message size restraints for my personal uses

instead of implying i know how crypto should be enacted.. with my current knowledge and interest i would be wholly unable to deduce as you did in your article.. i was simply stating that i am interested in factoring large integers and i wonder why anyone thinks open problems in number theory are a sound means of crypto

superb write up by the way

Re:The 3DS Cryptosystem by yifanlu on Sunday April 10, 2016 @03:41PM (#11467789)
> i wonder why anyone thinks open problems in number theory are a sound means of crypto

The short answer is that the numbers are so large that with current state of the art means (which I'm sure you know a lot about), factoring a 2048 bit number takes around 1000 years and 4096 bit keys takes about 2^32 times more years. Even if computers get faster every 10 years, you can see that it won't improve much. That's why we use number factoring for crypto; because it takes so long to break.

However, as you've pointed out, since the problems are open, the calculations are meaningless. And of course all this analysis goes out the window with quantum computers. But the unfortunate truth (the "biggest embarrassment of computer science" as Dan Boneh calls it) is that we don't actually have any proof that security exists. All crypto is built on open problems. So better choose open problems that's been open for a long time.

Re:The 3DS Cryptosystem by justifier on Sunday April 10, 2016 @04:08PM (#11467927)
> is that we don't actually have any proof that security exists

again you speak from a practical perspective, right?

because i was under the assumption onetime pad is provably secure

Re:The 3DS Cryptosystem by eximius on Sunday April 10, 2016 @11:54AM (#11466687)
That is what all cryptography is based on?

And I don't know what subpolynomial time nonsense you're talking about.

Re:The 3DS Cryptosystem by tptacek on Sunday April 10, 2016 @12:24PM (#11466836)
If you're going to be rude, at least be correct. All cryptography is not in fact based on factoring; in fact, most public-key crypto isn't.
Re:The 3DS Cryptosystem by eximius on Sunday April 10, 2016 @01:54PM (#11467336)
I wasn't referring to factoring. I quite like lattice based and ECC systems. I was referring to 'if it's hard for me it must be hard for you'. ALL cryptography is based off of that assumption.

edit: I can't seem to reply to you again, so I'll edit. This is all a big miscommunication. I was more confused than hostile, though I recognize how it came off poorly. I genuinely thought he had some fundamental understandings due to the combination of things he said. I was mistaken and my response came off poorly.

Re:The 3DS Cryptosystem by tptacek on Sunday April 10, 2016 @01:58PM (#11467359)
That's a reading of the original comment so uncharitable as to seem tendentious. The commenter was specific about factoring; they were not calling into question the entire idea of a trapdoor function.
Re:The 3DS Cryptosystem by justifier on Sunday April 10, 2016 @12:42PM (#11466933)
> subpolynomial time nonsense

what exactly do you mean by this?

Re:The 3DS Cryptosystem by tptacek on Sunday April 10, 2016 @12:45PM (#11466947)
The original poster probably meant to write "sub-exponential". The commenter to whom you're responding may or may not have known what the correct term was; we'll never know, because they chose snarky incivility instead of correction.
Re:The 3DS Cryptosystem by justifier on Sunday April 10, 2016 @12:59PM (#11467023)
i am the original poster :p

and the 'sub' was misplaced, i actually asked instead of editing the original in case this was the reason i was called out so i could explain my typo

for clarification the original should simply read 'polynomial time'

Re:The 3DS Cryptosystem by khedoros on Sunday April 10, 2016 @01:54PM (#11467337)
> factoring numbers is deterministically achievable in sub polynomial time

Am I missing something? I thought that the whole point of using the difficulty of integer factorization as the strength of things like RSA was that it's not known to be solvable in polynomial time. "P==NP" is one of the unsolved problems of computer science.

I think that the state of the art is that we can factor in sub-exponential time.

Re:The 3DS Cryptosystem by yifanlu on Sunday April 10, 2016 @02:11PM (#11467413)
You may not mean it this way, but for any reader who might be mistaken:

P == NP => integer factorization can be done in polynomial time with a classic computer but not vice versa. In fact, many people believe P != NP && integer factorization can be done in polynomial time since FACTOR lies in this awkward space in the intersection of NP and co-NP. (Most other problem in this space are also in P, but we think P != NP, so...)

Now of course, if you put in quantum computers into the mix, Shor's algorithm can break both RSA and ECDSA in polynomial time.

Re:The 3DS Cryptosystem by tptacek on Sunday April 10, 2016 @01:57PM (#11467351)
By "things like RSA", you pretty just much mean "RSA". A lot of progress was made on integer factorization over the last 35 years, so that key sizes we'd have thought totally reasonable in 1995 are totally inadequate today. That is not similarly true of non-factoring systems, and so it's legit to point out the relative weakness of IFP crypto compared to other approaches.
Re:The 3DS Cryptosystem by pbsd on Sunday April 10, 2016 @02:25PM (#11467460)
> key sizes we'd have thought totally reasonable in 1995 are totally inadequate today.

Not really. The last big jump in complexity was in 1991, when the first 512-bit modulus, 2^512+1, was factored by NFS [1]. What has progressed the most, by far, has been the available computational power.

[1] http://www.ams.org/journals/mcom/1993-61-203/S0025-5718-1993...

Re:The 3DS Cryptosystem by tptacek on Sunday April 10, 2016 @02:29PM (#11467470)
The last big theoretical jump in complexity was NFS, but is your argument that implementations of NFS haven't much improved, apart from raw computational power of the same sort available to general purpose computers (ie: non-vectorized instruction sets)?

You know much more than I do about this stuff, but I think I'm prepared to challenge you on this. :)

Re:The 3DS Cryptosystem by pbsd on Sunday April 10, 2016 @02:40PM (#11467513)
NFS implementations have certainly improved, and certain sub-algorithms as well, e.g. lattice sieving and polynomial selection. But these things don't significantly tilt the exponent you expect in a factorization. As in, you expected around 2^80 "operations" for RSA-1024 back in 1995, and that's still roughly what you expect today.

The practical NFS improvements since then might bring that down to 2^78 or even 2^72---and that's a lot of money saved---but when you're thinking of which key size to use it doesn't matter nearly as much as how 2^80 computation is something that is reasonably practical today, but was unthinkable in 1995.

Re:The 3DS Cryptosystem by khedoros on Sunday April 10, 2016 @02:19PM (#11467441)
I take your point. ECC probably wouldn't cost Nintendo more to implement, but would provide a system that probably isn't being attacked as successfully, hopefully giving their system more time on the market before it's cracked.
Re:The 3DS Cryptosystem by tptacek on Sunday April 10, 2016 @02:31PM (#11467477)
It didn't make a huge difference here, I should be clear. I don't like RSA, and my dislike for it comes almost entirely from something orthogonal to key sizes --- public key systems provide one or more of three primitives: direct encryption, signature verification, and key exchange; RSA provides all three, and the direct encryption primitive is a giant foot cannon.

If the original commenter's point was that RSA directly harmed the 3DS in some fundamental way, that would be a legit thing to push back on, I think.

Re:The 3DS Cryptosystem by eximius on Sunday April 10, 2016 @01:59PM (#11467364)
Apologies, I mistook your typo/mistake combined with the odd phrasing of different difficulties to imply you really thought factorization could be done in subpolynomial time by some actors (i.e., NSA or something) as opposed to a misunderstanding.

I should have phrased my response differently regardless.

Re:The 3DS Cryptosystem by justifier on Sunday April 10, 2016 @02:59PM (#11467605)
of duck backs, water, and bridges bygone

> deterministically achievable in sub polynomial time

it's already been stated that 'sub polynomial' was a typo, the original sentence discussed subexp state of the art but i changed it to discuss my research instead and failed to remove the 'sub'

'deterministic' can also be appropriately called out as redundant when used with polynomial time because it is implied in the latter but i wanted to be explicit

> my intended inference

inference is defined as 'a conclusion reached on the basis of evidence and reasoning'

this is a word structure i use in place of faith based assumptions: i think, i believe, etc; to establish a respect for evidence based conclusions

part of my research's aim is interested in a polynomial time algo for integer factorisation, but before i am to conclude that there is such a thing i require evidence, hence it being the intended inference of my research stead a direct inference

> 'it's hard for me it must be impossible for you'

this is what you will hear very often from many in the know if you tell them you have interest in a poly factorisation algo, even in spite of the problem being open

except in the case of one of the people that fanned all this interest

    Richard Karp: (Berkeley, unsure, P=/=NP) My intuitive belief is that P is unequal to NP,
    but the only supporting arguments I can offer are the failure of all efforts to place specific
    NP-complete problems in P by constructing polynomial-time algorithms.
    I believe that the traditional proof techniques will not suffice. Something entirely novel will
    be required.
    My hunch is that the problem will be solved by a young researcher who is not encumbered
    by too much conventional wisdom about how to attack the problem. (o)
:p

(o) http://www.cs.umd.edu/~gasarch/papers/poll.pdf

Re:The 3DS Cryptosystem by eximius on Sunday April 10, 2016 @03:46PM (#11467818)
I remember that paper. I believe P=/=NP, but man it would be amazing what you could accomplish if it was! (For example, you could answer in polynomial time whether a proof for a sentence S existed with N symbols or fewer. For sufficiently large N, it is essentially a universal truth tester for a given model T! Incredible!)