• b3nsn0w@lemmy.world
    link
    fedilink
    English
    arrow-up
    25
    arrow-down
    1
    ·
    2 days ago

    not really, because post-quantum crypto is never deployed by itself, it’s always combined with a strong classical primitive like x25519 (which is a 256-bit elliptic curve with no random constants because no one trusts those post-snowden). for an attacker to succeed, they’d have to break both the post-quantum part, and the classical part, which is only possible if the post-quantum part is flawed in a way we don’t know yet, and the classical part is vulnerable to a quantum attack.

    i’d take the nsa’s warning as a signal for the expected progress in quantum computing, not as an ai thing. i know ai gets all the headlines, but it is extremely unlikely that it can just blanket break any classical crypto. on the other hand, the nsa might know some things about classified quantum computing developments, especially by non-us actors, and wish to harden its interest group against that.

    imo the right way to play this would be:

    • get off rsa and other prime number algos. you should have done this a decade ago, tbh, rsa had already been significantly weakened, but it’s especially risky in the post-riemann world where our understanding of prime numbers is once again increasing significantly.
    • when adopting ecc, watch who you get your algo from, the nsa has already demonstrated they can include algorithmic backdoors with dual_ec_drbg. x25519/ed25519 are safe bets because there’s proof of zero knowledge to that, the constants are easily derived mathematically so we know they do not correspond to a hidden master key, and the particular choice of constants even speeds up the algorithms.
    • add a post-quantum algorithm on top of the classical one, to guard against quantum computers. mlkem seems to be the winner so far, to my knowledge it’s been around the longest without being broken. that matters, because sometimes what we thought was safe turns out not to actually be safe. for example, supersingular isogenies looked like a surefire bet a while ago, but they’ve been broken since.

    x25519mlkem768 is already out there, it’s the perfect combination of a trustworthy ecc scheme with a post-quantum algorithm on top. for some reason mozilla is insisting on p-384 instead for the classical part, which is a larger curve that will need a larger quantum computer to break, but it’s a nist curve, so if you don’t trust the nsa maybe find a different one.

    • loke@fedia.io
      link
      fedilink
      arrow-up
      4
      ·
      2 days ago

      Isn’t the hypothesis that 25519 had been proven to be weak? If that is the case, and it can be broken, then ML-KEM is tge only thing that protects you when using x25519mlkem768. It seems that a hybrid RSA plus ML-KEM works actually be better. Again, this is assuming that the hints about elliptical curves are true.

      • b3nsn0w@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 hours ago

        okay, i looked into it a bit more and that does seem to be one read on the situation, but statistically it’s way too random to tell what’s actually going on. and the chances do in fact include that nothing is really going on and when this thing gets revealed it turns out to be a nothingburger.

        basically the ingredients are

        • openai and anthropic creating vague panic and urging people to move to post-quantum crypto
        • the nsa insisting we use pure mlkem/mldsa, without a classical crypto layered on top, as usual
        • everyone even mildly in the know panic-jumping to p384, the most secure classical algorithm (if you disregard the possible nsa backdoor)

        you can trivially disregard the nsa’s argument. layering a classical algorithm like x25519 or p384 on top of your post-quantum crypto gives you better security than the pure post-quantum crypto, for practically free, and it’s already implemented pretty much everywhere that mlkem is implemented at all.

        as for the others, there are two options:

        1. ai has discovered some cryptanalysis that weakens small elliptic curves, forcing us to use larger primitives
        2. there is a near-term risk of a quantum computer

        in case of #1, switching to pure post-quantum is the stupidest possible move you can make. mlkem/mldsa is significantly younger than either the elliptic curve algorithms or rsa, and thus the risk of it breaking to classical cryptanalysis is significantly higher than there is to rsa or ecc. i still hold it that rsa is at higher risk than ecc, but both are safer options than mlkem against a classical attack.

        in case of #2, jumping to a larger curve only buys a tiny bit of time. it’s very unlikely that if x25519 fails, p384 wouldn’t follow at most a few years afterwards. which would mean hndl is viable.

        the industry’s decision is more or less to jump to larger primitives, particularly p384 or large rsa implementations now, and to post-quantum hybrids later. this is somewhat consistent with #1. it does not suggest that x25519, specifically, is broken (because otherwise p256 would remain an option), but it does suggest that no one really knows what’s going on and no one knows what algorithm to trust.

        personally, i think there’s a minor breakthrough that slightly weakens most forms of crypto, and it might be large enough to matter slightly. it’s not a p=np situation for sure, because that would break post-quantum cryptography too, and it may be a classified quantum computer happening sooner than expected, but that news wouldn’t come from ai companies, and the nsa isn’t doing anything they haven’t been doing before. the real risk might be a heightened chance of future breakthroughs, but to properly defend against that, the trick isn’t to increase the size of your primitives or to jump ship to a relatively young and untested primitive, it is to use as many primitives as you can.

        there are more post-quantum schemes than just mlkem. hqc and mayo came up several times while i was looking it up, personally in any system i design for this i’ll be pairing them with mlkem/mldsa and x25519/ed25519. if ai cryptanalysis is the real issue, we should probably also secure symmetric primitives, but thankfully aes-256 and chacha20 are both mature, and sha-2 and sha-3 use very different math too. there is no single library that practically implements all of this, but if you just ensure you chain multiple primitives at each step, you will always have redundancy when one of them gets broken.

      • JoeKrogan@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        1 day ago

        Yes it seems to be the interpretation and my concern too. Hope we get some more clarification soon.

        Personally I’ve switched ssh to use mlkemx25519 and sntrup761x25519

        Nginx to use mlkemx25519, MLKEM1024X448 Lets encrypt to 3072 RSA

        wireguard was already using a PSK.

        Its hard to know what to think