Slashdot Mirror


Math Advance Suggest RSA Encryption Could Fall Within 5 Years

holy_calamity writes "The two encryption systems used to secure the most important connections and digital files could become useless within years, reports MIT Technology Review, due to progress towards solving the discrete logarithm problem. Both RSA and Diffie-Hellman encryption rely on there being no efficient algorithm for that problem, but French math professor Antoine Joux has published two papers in the last six months that suggest one could soon be found. Security researchers that noticed Joux's work recommend companies large and small begin planning to move to elliptic curve cryptography, something the NSA has said is best practice for years. Unfortunately, key patents for implementing elliptic curve cryptography are controlled by BlackBerry."

34 of 282 comments (clear)

  1. We need to keep this secret by BenSchuarmer · · Score: 4, Funny

    otherwise hackers will use it to mess up the internets.

    1. Re:We need to keep this secret by buchner.johannes · · Score: 4, Informative

      You mean like SSL is broken and nobody talks about it?

      First there was BEAST in 2011, which was fixed. But the situation in 2013 is not better!
      https://www.globalsign.com/blog/is-ssl-broken.html (and links therein, especially the last two)
      https://www.imperialviolet.org/2013/02/04/luckythirteen.html
      http://blog.cryptographyengineering.com/2013/02/attack-of-week-tls-timing-oracles.html
      List of all attacks: http://armoredbarista.blogspot.de/2013/01/a-brief-chronology-of-ssltls-attacks.html

      --
      NB: The message above might reflect my opinion right now, but not necessarily tomorrow or next year.
  2. RE: Elliptical curves by Anonymous Coward · · Score: 4, Interesting

    https://www.schneier.com/essay-198.html

  3. OpenSSL? by pope1 · · Score: 5, Interesting

    OpenSSL has had a good working implementation of ECDSA/ECDH for years: http://wiki.openssl.org/index.php/Elliptic_Curve_Cryptography

    What exactly does BlackBerry have chained down that we don't have an open solution for?

    --
    /* * pope1 */
  4. Key patents controlled by Blackberry by Anonymous Coward · · Score: 4, Insightful

    Hmm ... considering Blackberry/RIM's precarious hold on existence, I have a hunch those patents will be in other hands very soon.

    1. Re:Key patents controlled by Blackberry by pipedwho · · Score: 3, Insightful

      Likely example: the horrific clusterfuck of an abomination known as "little-endian binary". I don't know for sure it came about due to patent reasons, but I can't think of any sane reason why it would have ever come into existence otherwise.

      From a purely machine theoretical standpoint, having the low order byte in the lowest memory location makes as much or more sense than the other way around.

      Streaming transmission is a different matter, and in some instances can benefit from being able to receive the MSB first. This is especially true if the data gets acted upon in real time and the MSB is required earlier during the calculation. However, in may other cases, LSB first network byte order can be more advantageous (or at most at least not a disadvantage). So the decision to use either is really based on the algorithms chosen for the network traffic itself.

      In creating interface code to opposite-endian systems, it's easier to think about avoiding translation and keeping both in the same format. But, I've personally never had trouble with this since I've always used reversed buffers where direct use of reversed multi-byte arithmetic was useful.

      However, it stands to reason that the designers of the first little-endian processors didn't consider this a problem, as most byte traffic needs to be buffered and checked before it can be used in calculations, and that obviates the need for having network byte order being same-endian. Since these were all designed in the early days, I see no reason to assume that the choice to go with little-endian would have been any sort of compromise to the state of the art.

    2. Re:Key patents controlled by Blackberry by amorsen · · Score: 4, Interesting

      There are plenty of sane reasons to use little endian. It means the same pointer can point to a value as 8-bits, 16-bits, 32-bits and so on, and it will get the right value as long as the value does not overflow.

      Big-endian only exists because Latin languages write their numbers wrong -- text is written left-to-right but numbers are written right-to-left. This mess has also caused the middle-endian date and time formats currently in use. ISO tries to fix the date format, but unfortunately does it by standardizing exactly the big-endian way that feels so alien to humans.

      If computers had been invented by someone writing either left-to-right or right-to-left consistently, big-endian would not have occurred to them. They would naturally write the smallest value first, just like the Arabic inventors of the numbers. Alas...

      (Yes I am a convert. I used to think little endian was a sick joke.)

      --
      Finally! A year of moderation! Ready for 2019?
    3. Re:Key patents controlled by Blackberry by Rockoon · · Score: 3, Informative

      I blame little-endian on a sort of backwards compatibility.

      Little-endian simplifies CPU circuits that perform multi-word operations. Its really that simple. End of discussion.

      --
      "His name was James Damore."
    4. Re:Key patents controlled by Blackberry by cas2000 · · Score: 4, Interesting

      Big-endian only exists because Latin languages write their numbers wrong -- text is written left-to-right but numbers are written right-to-left.

      huh? numbers are written in exactly the same order they would be expressed in words - "fifty-one thousand, three hundred and forty-eight" == 51,348

      being trained from a young age to read numbers like that, i have no idea whether it really would have been just as easy to learn to read the digits in reverse order ("8 4 3 1 5") but it doesn't seem so to me. In fact it seems competely unnatural - the kind of thing you might do just to prove you can rather than because it's any better or more efficient.

      This mess has also caused the middle-endian date and time formats currently in use.

      it's really only americans who do this (MDY). and maybe the japanese because of the "Operation Blacklist" post-WWII occupation led by Gen. MacArthur. Everyone else uses DMY or YMD because the middle-endian american date format is alien - people naturally order things from either smallest to largest (or least significant to most significant) or from largest to smallest (most to least).

      ISO tries to fix the date format, but unfortunately does it by standardizing exactly the big-endian way that feels so alien to humans.

      YYYY-MM-DD seems perfectly natural to me, not at all alien. I was raised on D-M-Y but figured out for myself that YYYYMMDD is the only format that sorts properly (and then later learnt there was as ISO standard for it).

      YYYYMMDD also has the advantage of being unambiguous - you don't have to guess whether whoever wrote the date is american and if so, whether they're using a sane or insane date format or not - for days >12, it's easy to figure out: 8-13-2013 can't be anything but 13th August....but 8-7-2013 could be July 8 (sane) or August 7 (insane).

      worse, there's absolutely no way to tell except to look for other dates on the same page (or journal/ledged/book/web site/etc) and check to see if any of them have day numbers > 12.

  5. Re:RSA = out of date by EvanED · · Score: 5, Insightful

    The RSA encryption has been depreciated for years now. Hell, back in 2000 we were saying that DES was insecure, and triple-DES was just a stop-gap. Everyone's been switching to AES for awhile now. This isn't news.

    Your first sentence sounds weird to me, and it isn't supported by your second. AES can't be a suitable replacement for RSA because AES is a secret-key system and RSA is a public-key one.

    I'm not a crypto person, but RSA and elliptic-curve systems are the only two public-key systems I can think of. (There are others that allow secure exchange of a secret key, but that's different.)

  6. Re:RSA = out of date by burne · · Score: 4, Informative

    You need upvotes, but I'm out of modpoints.

    You are very correct. Take for instance OpenVPN. It uses RSA to exchange an random AES session key. RSA and AES/DES/3DES have different uses, and replacing RSA with AES is simply not possible.

  7. Re:RSA is outdated, but... by qubex · · Score: 5, Insightful

    Based on my limited understanding, proving P = NP would not necessarily and automatically provide a manner of constructing reductions. It might. But there are proofs in computation theory that demonstrate limit complexities but do not provide the algorithms that might implement them, nor do they (currently, visibly) provide any indication of how that algorithm may be arrived at.

    Besides, proving P = NP would have a vast number of consequences that would echo across mathematics and the more fundamental sciences. To harp upon the security implications is as short-sighted as fretting that all-out thermonuclear war would negatively affect the postal delivery service.

    --
    "Place me in the company of those who seek Truth, but deliver me from those who believe to have found it."
  8. Re:Ah what does it matter... by Anonymous Coward · · Score: 4, Insightful

    Yeah. They have taxes for that.

  9. Re: Elliptical curves by EvanED · · Score: 4, Informative

    Without a statement as to whether the NSA has been involved in elliptic curve stuff (though I will point out that they have nearly as much motivation to make things hard for, say, the USSR/China [depending on era] to crack as they do to make things easy for them to crack), did you read your link? It isn't really talking about elliptic curve crypto at all.

    It's describing a potential flaw in a random-number generator whose algorithm is based around elliptic curve crypto. Even if every worry presented by the article is true, that means absolutely nothing about whether elliptic curve is secure against the NSA.

    (Actually it almost suggests that it is, because if EC was breakable then the NSA wouldn't have as much motivation to get a known key into the RNG standard.)

  10. Re:RSA = out of date by tlhIngan · · Score: 5, Informative

    The RSA encryption has been depreciated for years now. Hell, back in 2000 we were saying that DES was insecure, and triple-DES was just a stop-gap. Everyone's been switching to AES for awhile now. This isn't news.

    Wow, that is so wrong.

    RSA is an asymmetric (aka publick key) cipher - because it requires two keys - one to encrypt, one to decrypt. AES, DES, 3DES are symmetric ciphers because you use the same key to encrypt and decrypt.

    RSA and EC (elliptic curve) encryption is useful if you want to send data to someone without the hassles of secretly sharing the key ahead of time - e.g., I can encrypt a message using the public key and only the private key can decrypt it. Or I can use my private key to encrypt a message, and the public key can be used to decrypt it (the latter is often used to sign stuff, except the message is typically a hash instead of the original message).

    The reason you use AES, DES, 3DES is because public key encryption is hideously slow. In the case of RSA, you're exponentiating one horrendously large number with other horrendously large numbers. (If your message is long, that horrendously large number Is big).

    That's why what every public key encryption thing does is it encrypts the message with a fast symmetric cipher like AES, then encrypts the key (much shorter) with RSA or EC. If I want to send you a document, I encrypt it with AES, then use your public key to encrypt the AES key I used.

    It's also why signing uses a hash - it's easier to encrypt the hash than the message. And verification just means recomputing the hash, and then decrypting the encrypted hash with the public key, producing the original hash to which can be compared to the just computed one.

    The breakthrough in math would be a way to factor a large number quickly - which is what RSA relies on for security - it's easy to multiply two big numbers, but it's very time consuming to factor it.

  11. Re:Ah what does it matter... by dmbasso · · Score: 3, Insightful

    They do. It is called taxes.
    You pay to be spied on, good deal!

    --
    `echo $[0x853204FA81]|tr 0-9 ionbsdeaml`@gmail.com
  12. Re:RSA is outdated, but... by Anonymous Coward · · Score: 3, Insightful

    Actually in some ways it would be really really exciting and almost certainly a really good thing in the long run, because there are a lot of important, currently-intractable problems that become tractable if P=NP.

    Proving that P=NP doesn't make anything tractable, unless you use the ridiculous definition where tractable is the same as polynomial time. What would have practical applications is if someone finds a very fast algorithm for solving all the NP problems. Whether P=NP is not really very much related to the question of whether such an algorithm exists. ML has exponential-time type checking, yet ML compiles don't take that long. Polynomial time is not the same as practical - it fails in both directions.

  13. Re:What patents? by niado · · Score: 4, Informative

    You can't patent math.

    As TFS states, it's the implementation that is patented. Not sure which ones belong to blackberry, but google patents has a number of related patents based on a quick cursory search.

  14. Re:Why not go back to original RSA? by slew · · Score: 5, Interesting

    Why elliptic curves when we can go back to good old fashioned original RSA that uses prime number factoring as the problem? No patent nonsense to worry about there.

    Sometimes the past needs to remain in the past...

    Although prime factoring is considered a hard problem, the sparse distribution of prime numbers (~x/ln(x)) makes RSA increasingly inefficient in that superlinearly large moduli (to match large primes) need to be used to increase security linearly.

    Lest nostalgia continue to be your guide, the original RSA was also found to be broken and needed to be patched to avoid the insecurity

    1. Messages corresponding to small input values could be simply inverted ignoring the modulus operation (just doing numerical root estimation to invert the exponentiation). The larger the modulus, the more "insecure" messages there are.

    2. Encryption is deterministic so is subject to dictionary attacks.

    When people say they are using RSA today, they are usually using RSA-OAEP (optimal asymmetric encryption padding) which patches these two specific vunerablities of RSA.

    FYI, the original RSA was patented (although later RSA labs decided to not enforce the patent and let it expire). This patent nonsense around RSA was a big issue in its day...

  15. Re:RSA = out of date by ultranova · · Score: 4, Informative

    I said nothing about key exchange systems or anything else... I was making a general comment about encryption schemes; Your confusion is because you are drawing your own conclusions, rather than staying on point: Which is that every encryption algorithm, regardless of type or usage-scenario, has a shelf life.

    You still can't replace an outdated public-key encryption key system with a symmetric system. Because, in real life, usage scenarios and key exchange systems actually matter - in fact, they are the most crucial aspect of the whole thing, otherwise we'd use true random one-time pads and be safe from any attack with any level of computing power forever.

    --

    Forget magic. Any technology distinguishable from divine power is insufficiently advanced.

  16. Re:RSA = out of date by EvanED · · Score: 5, Informative

    I didn't say that you said that AES could replace RSA: I said that your AES/DES analogy didn't support your statement that RSA is or should be deprecated. That may sound like I'm nitpicking here, but I'm really not: it's pretty fundamental to my point. And the reason is this:

    Which is that every encryption algorithm, regardless of type or usage-scenario, has a shelf life.

    This absolutely need not be true. RSA for instance is based in part around a hardness assumption: that given a very large number n which is the product of p and q, it is far harder to find p and q from n then it is to find n from p and q. Assume for the sake of argument that this is the only hardness assumption RSA depends on. (If the summary isn't misleading it apparently also depends on the hardness of discrete log, but I don't know how.)

    If the hardness assumption holds, then RSA as such will never be insecure. Why? Suppose you say "here is a computer capable of factoring a number n with b bits." I'll say "OK, fine; I'll use 100*b bits (or something)"; because multiplying is so much easier than factoring, your computer will still be able to carry out that task but it won't be able to crack my key.

    In other words, if the hardness assumption holds, RSA doesn't have a specific difficulty: it can scale with computational power. That's why you see people using 2048-bit keys now instead of 512-bit keys a couple of decades ago.

    The only things that the age of the algorithm has to say about the security of it is (1) if the difficulty cannot scale with computational power (true of DES, not true of RSA) and (2) being out longer gives people more time to find flaws in its assumptions.

    But here's the thing: #2 isn't necessarily bad or speak against the algorithm. It is conceivable that the assumptions just fundamentally hold. If they do, being out longer will not impact the security at all. If anything, being out longer with no one discovering anything should give a higher assurance that an algorithm is secure than a newer one would.

    now that resources have increased many-fold since the original, it is no longer secure.

    I don't think I've ever heard a blanket statement about RSA being insecure -- only things like certain key sizes or certain implementations or PRNGs being insecure. (Wikipedia also lists a couple of side-channel and plain-text attacks, but those are also arguably quality-of-implementation issues, and similar attacks exist for EC systems.) The intro to the Wikipedia article says nothing about RSA being insecure. "Deprecated" and "discouraged" both fail to appear on the page.

    The strongest statement against RSA I've heard is just that EC is better.

    I then compared it to other encryption schemes that are less resource-constrained which have been coming into wider use

    Except that the DES vs AES case is not even close to being the same case, as Adam Van Ymeren said in response to you, and then I elaborated on elsewhere and above.

    The reason it's not even close is that DES does not scale with computational power, because it has a fixed key size.

  17. Re:Ah what does it matter... by Quasimodem · · Score: 5, Funny
    You pay a fraction of your income to have someone watching you all the time.

    It's a great deal if you're an exhibitionist!

  18. I've been working on RSA for over ten years... by Panaflex · · Score: 3, Interesting

    I'm surprised to see other people going in the direction I've been going for about 3 years now. Really. I thought I was quite alone in my path, LOL.

    I need to read this paper still, but if it's taking the same path I did, then it's not a peachy as some think.

    I'm only am amateur, so take this from the point of view as someone who kicks back with a beer and enjoys solving impossible computational problems.

    I don't think it's that close to being broken... I think it'll take a huge computing effort (think multi-terabyte databases) to generate the tables across the PQ space required so that existing problems can be used to quickly find paths and intersections. At the beginning you're looking at only a VERY SMALL speedup from modern sieving, but once the tables get generated (years of effort) you'll eventually see faster and faster improvements. At least, that's with my algorithm, which I'm sure is far from perfect and only works on a certain set of primes right now. Which is about 20%. Which is far from optimal.

    So yeah, progress. But I'm unconvinced that this will work for all primes.

    I'm going to read the paper now... which I'm sure is far better than what I've been doing.

    --
    I said no... but I missed and it came out yes.
  19. Re: RSA = out of date by ceoyoyo · · Score: 5, Insightful

    The story is talking about the possibility of a mathematical breakthrough that would make solving the discrete logarithm problem (and possibly the integer factorisation problem) much, much easier. RSA relies on it being much easier to raise something to an integer power than to find a discrete logarithm (inverse operations). If you figure out how to make the two operations of similar difficulty then any encryption scheme based on them is hopelessly broken for any key size.

  20. Re:RSA is outdated, but... by gnasher719 · · Score: 4, Interesting

    (One way this could fail is the following: factoring I think is in a no-mans land between P and NP, not known to be in P nor known to be NP-complete. If NP collapses into P then so must factoring, but it could be that factoring is some weird-ass O(n^23) algorithm or something while every NP-complete problem can't be done in less than, say, O(n^6000).)

    Consider this: Performing 2^256 operations is physically impossible (based on the quantum mechanical minimum energy to do anything, and the total amount of energy in the universe). 100 digit numbers are about 330 bits in size. If factoring n bit numbers required n^30 operations, then factoring just one 330 bit number would be physically impossible.

  21. I doubt this article should be taken too seriously by mstefanro · · Score: 4, Interesting

    There does not appear to exist any single piece of evidence that DLP (discrete logarithm problem)
    will benefit from algorithms running in polynomial time. The recent work of Antoine Joux that they
    are referring to (one of which I assume to be http://arxiv.org/pdf/1306.4244v1.pdf) provides
    improvements of quasi-polynomial agorithms for breaking DLP. But there is no reason to believe
    that these improvements can lead to a polynomial-time attack. And as long as this does not happen,
    those attacks can still be defeated by increasing the key size.

  22. Re: RSA is outdated, but... by ceoyoyo · · Score: 5, Insightful

    You misunderstand the difference between throwing hardware at a problem and coming up with a more efficient algorithm.

    RSA doesn't specify a key length. I can use a key that's 64 bits long (used originally but insecure today) or 1 megabit long (secure against known classical algorithms for the age of the universe no matter how much hardware you throw at it). As hardware gets better I can encrypt things using longer keys, in the same amount of time. It takes you MUCH MORE time to decrypt that, even with the better hardware. So long as you keep increasing key length as hardware gets faster, the encryption actually gets BETTER with better hardware.

    The article is talking about a breakthrough in mathematics that could make solving discrete algorithms much faster. If it made it anywhere near as fast as exponentiation then it wouldn't take me much longer to decrypt your message than it took you to encrypt it, regardless of key length.

    DES is insecure because it uses fixed length keys, that became practical to brute force. RSA doesn't have that problem. The situations are entirely different, and the potential breaking of RSA is much more interesting, and much more of an accomplishment.

  23. Re:RSA is outdated, but... by EvanED · · Score: 3, Informative

    You are technically correct, but certainly the quickest and most direct proof is to show a general solution for an NP-complete problem that runs in P time

    You don't know that for certain; it is conceivable (if seemingly unlikely) that the easiest proof and the first found could be non-constructive.

    (Remember, to prove that a problem is in P you not only have to come up with a P algorithm for it but then you have to prove that the algorithm is actually in P. It could be that any algorithm for a (currently-considered) NP-complete problem is complex with a staggeringly complicated proof that it's in P at all.)

    And factoring is an NP-complete problem.

    This is a bit of a nit, but factoring isn't known to be NP-complete; from what I can tell, it's actually widely believed to be in an intermediate class between P and NP. (No P algorithm is known, as you note, but there is a sub-exponential algorithm for it, which violates a widely-held belief that NP-complete problems are necessarily exponential.)

  24. Swype fail by raymorris · · Score: 3, Insightful

    For encryption, that's fine. For signatures and hashes, cascading WEAKENS it. An attacker only has to crack ANY of the algorithms to crack the whole. To prove that to yourself, try it with one of the algorithms defined as:

    function Weak(msg) {
    return 1;
    }

    Compare these two:

    Weak(MD5(msg))
    MD5(msg)

  25. a common misconception by raymorris · · Score: 3, Insightful

    That's a common misconception. The actual law is:

    You cannot patent the laws of nature, including the laws of physics and mathematics.

    A car MAKES USE of the laws of physics, but it may be patentable if it's a new invention. You cannot patent X + 1 = X - (-1) because that's mathematical truth, it existed before you noticed it. Just as you can patent a new invention that USES the laws of physics, you can patent some system that uses math. In this case, a system for securely delivering secret messages across a public network. Of course it still has to be a new and useful invention in order to be patentable.

  26. Re:The real math secret by Mal-2 · · Score: 3, Funny

    1 + 1 = 3
    This is a correct answer. Do you know why?

    It was calculated in Excel?

    --
    How is the Riemann zeta function like Trump rallies? Both have an endless number of trivial zeros.
  27. Re:RSA = out of date by dcl · · Score: 5, Interesting

    There is another promising public key encryption method known as NTRUEncrypt (http://en.wikipedia.org/wiki/NTRUEncrypt). It's lattice based, and apparently it will still be effective in a post quantum computing world where RSA/Elliptic curve methods will fail.

  28. Re:RSA = out of date by russotto · · Score: 4, Informative

    The RSA encryption is
    c = m^e (mod n), where m is message, c is ciphertext, e is public exponent, and n is p*q

    Decryption is
    m = c^d (mod n) where d is the private exponent.

    The process of computing d given m,n and c is exactly the discrete logarithm problem. Given n and e, which are public, you can pick an arbitrary m and generate a corresponding c.

  29. Re:RSA is outdated, but... by phantomfive · · Score: 4, Insightful

    I don't need to be a math major to figure out that if I have a car that can go 200 MPH it'll get there twice as fast as a car that can only do 100 MPH.

    You would have been better as a math major. To understand the issue, realize that a car going 200MPH needs much more power than a car going 100MPH. A car going 400MPH will need even more power. Similarly, with some algorithms, the solution becomes harder and harder the larger the dataset grows; often exponentially (or even factorially).

    --
    "First they came for the slanderers and i said nothing."