Unofficial Hacker News companion — get notified on comment replies, and more.

Anthropic has made a major breakthrough in theoretical cryptanalysis (opens external site)

648 points by bifftastic 3 days ago | twitter.com | 639 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (7)

  1. A one-time pad, by definition, uses a pre-shared key that is truly random, equal in length to the message, and never reused. A "one-time pad" based on deterministically generated random numbers is not a one-time pad at all, but a stream cipher: https://en.wikipedia.org/wiki/Stream_cipher

    In the scenarios discussed where cryptographic problems can be trivially solved, then stream ciphers would fall just like any other type of cipher, since the underlying PRNG could be broken.

    Replies (1)
    1. You're right. Pedantic semantics, imo. If it makes you happy, use the function to emit fixed length blocks of bytes as pads, print them and hand it out. Or use it as a stream cypher if you want. I mean, the whole point is "how to create shared blocks of bytes instead off handing out stickit notes per GP".
      Replies (1)
      1. Far from pedatry, it's an important distinction because one-time pads are secure and stream ciphers aren't, in the context of the discussion.

        Kotlopou: what happens in a world where all cryptography turns out to be trivially breakable?

        hadlock: guess we'll have to carry around stacks of one-time pads

        yubblegum: no you wouldn't, <proposes a cryptographic scheme that would be trivially breakable in the world under discussion>

        > use the function to emit fixed length blocks of bytes as pads, print them and hand it out.

        That's a stream cipher with extra steps, and is just as breakable.

        > I mean, the whole point is "how to create shared blocks of bytes instead off handing out stickit notes per GP".

        This is impossible in the scenario under discussion, which assumes any deterministic function can be broken.

        Replies (1)
        1. A one time pad is a secure as the mechanism that generated it.

          > yubblegum: no you wouldn't, <proposes a cryptographic scheme that would be trivially breakable in the world under discussion>

          If it is "trivially breakable", walk us through how you would break e.g. BLAKE3.

          Replies (1)
          1. The parent comment is talking about cryptography in a hypothetical "Pessiland" where, according to the linked definition:

            > any process f(x) that is easy to compute is also easy to invert in the sense that, for almost all values of x, given f(x), it is possible to find some x' with f(x') = f(x) in roughly the same amount of time it took to compute f(x).

            In other words, under this hypothetical, any hash function like BLAKE3 is also (almost always) invertible. So, one possible attack against your stream cipher is: if you have a ciphertext and a crib, then you can invert the hash function to recover one possible key and decrypt the rest of the message (there may be multiple candidates, but the probability of more than one match decreases exponentially as the length of the crib increases).

            Of course, if BLAKE3 is indistinguishable from a true random number generator, the stream cipher is indistinguishable from a true one-time pad. But no PRG has yet been proven indistinguishable from true randomness (as such would be a proof that P ≠ NP); and our premise is that such a PRG cannot exist and all PRGs are trivially breakable, which is why the distinction between OTP and a stream cipher is significant.

            Replies (1)
            1. IFF you used the entire hash output of something like blake3. We're grabbing a single byte out of the entire multi byte hash. And the rest will go to the next round. The permutations will explode. This is all relying on the guarantees of such functions regarding bit independence. Add a few parametric knobs (such as which bits to lift for the byte from the hash output) and we're in Enigma territory. You would need to know the mechanism and the params and then go trying to bruteforce such a function using one byte out of say n (n>=256) bits of hash for every character that you managed to decipher. I honestly don't see how it is possible unless the hash function is broken in a fundamental way.

              > Of course, if BLAKE3 is indistinguishable from a true random number generator, the stream cipher is indistinguishable from a true one-time pad. But no PRG has yet been proven indistinguishable from true randomness (as such would be a proof that P ≠ NP); and our premise is that such a PRG cannot exist and all PRGs are trivially breakable, which is why the distinction between OTP and a stream cipher is significant.

              Fully agree, but then how does one make a one time pad outside of using some "random" physical process to drive an algorithm to emit random bits? In other words, is it not true that most one time pads are themselves products of some PRNG?

              Continue this thread (1 replies) →