• rockSlayer@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      11
      arrow-down
      4
      ·
      2 days ago

      There are tradeoffs with encryption. RSA is so secure, that the US government has tried to insert a mathematic backdoor into the key selection because that’s the easiest method to attack the encryption. RSA uses thousands of bits for their encryption, making it inefficient for most attacks. The attack detailed in this article is on one of the weaker RSA algorithms, with only 1024 bits. The high end RSA uses 4096 bits or more, I believe the algorithm has increased the bit length to officially support 8192.

      On the other side of RSA is another secure algorithm called AES. It can go up to 512 bits, but it hashes the key to meet the key length instead of relying on generating huge prime numbers. It makes it more resilient to certain types of attacks, but the bit limitation makes it easier to brute force or use rainbow tables.

      • sik0fewl@piefed.ca
        link
        fedilink
        English
        arrow-up
        8
        ·
        2 days ago

        AES is asymmetric encryption and cannot be used for the same things as RSA. EdDSA would be more comparable to RSA.

        • rockSlayer@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          4
          arrow-down
          3
          ·
          1 day ago

          I know that AES is symmetrical. I was using it to illustrate that symmetrical and asymmetrical encryption have tradeoffs that cannot be worked around.

      • y0kai [he/him]@anarchist.nexus
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        1 day ago

        Thanks for this answer. The article makes it sound as though even the 4096-bit versions are now more or less trivial to defeat given a bit of money for a capable machine and this new method:

        Even for 2048- and 4096-bit keys, the method reduces the security of RSA to unacceptable levels. The National Security Agency, National Institute of Standards and Technology, and European Union Agency for Network and Information Security require that any cryptosystem should provide a level of no less than 128 or more bits, meaning the operations required must exceed 2^128.

        The forgery attack drops these levels to 2^65, 2^90, and 2^119 for 1024-, 2048-, and 4096-bit keys respectively. These levels may further drop because Heninger’s team did all the coding by hand and used no AI or GPUs in performing the forgeries. The researcher said these tools will “almost certainly” drop the security levels further.

        • prime_number_314159@lemmy.world
          link
          fedilink
          English
          arrow-up
          4
          ·
          19 hours ago

          Just to put a bit of context on those, OpenAI said they used 180,000 GPUs for training their GPT-5 model. As I understand it, each GPU has ~16,000 cores, and each of those cores does a couple billion operations per second. With that cluster, 2^65 operations takes a couple seconds, 2^90 takes many years, and 2^119 is off in “the sun has grown to surround the Earth” territory. The NSA is concerned with protecting their stuff against organizations with hundreds of billions of dollars, and a hundred of years of time to dedicate dozens or hundreds of people to breaking it. “Not good enough” in that context is a very different bar than what most people have to worry about.

          You also need to provide them 2^43 unsalted responses, which is more than a casual few.

      • rockSlayer@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        4
        ·
        2 days ago

        Elliptical curve for RSA was immediately phased out as soon as it was proven that the NIST was influenced by the NSA to implement it

        • WhyJiffie@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 hours ago

          Elliptical curve for RSA was immediately phased out

          what? when did RSA want to use elliptical curves? its a completely different technology. and ECC itself was not phased out of anywhere. certain curves were, not ECC as a whole.

        • ChrysanthemumIndica@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          7
          ·
          2 days ago

          And if I remember correctly, I believe it has more weaknesses (especially potential unknown ones) than RSA.

          But it’s definitely more efficient on embedded hardware, and for sure still gets used in that space. Not that I’d know cough cough

          • WhyJiffie@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            2
            ·
            3 hours ago

            And if I remember correctly, I believe it has more weaknesses (especially potential unknown ones) than RSA.

            what are those weaknesses? so far I have only read for users that ECC is more secure than RSA

            But it’s definitely more efficient on embedded hardware,

            not only on embedded hardware, but everywhere and also in network transfer because of the smaller keys

            • ChrysanthemumIndica@discuss.tchncs.de
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 hours ago

              Tl;dr - Choosing parameters for ECC is very important but also very difficult. Also, ECC is more resistant to quantum algorithms than RSA.

              I didn’t know about the PQC readiness of ECC so thank you!

              To my understanding, picking the right ECC parameters is critical to ensuring large enough entropy that it can’t be brute forced. There are a lot of weak and easy to compromise parameters, and a lot of trust has to be put in the standards organizations declaring which ones are “safe” like the NIST curves. Or you can choose your own, with a lot of risk associated.

              There’s also the fact that I believe there’s more potential to leak info/expose side channels on the embedded devices running these protocols (I’ve personally had to worry at work!)

              interesting about the security, it looks like ECC is arguably more secure against quantum algorithms? I first learned about all of this stuff about 10 years ago, and I only vaguely remember reading about the pqc resistance. Thanks for the update on that!

    • solrize@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      Yes we’re supposed to use ECC instead of RSA now. The major crypto libraries support it so you just configure your program to use it.