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 (8)

  1. Sure a onetime pad is a symmetric scheme. I am not placing any security merit on the performance of this hash, rather the applicability options that that affords. And yes i am certainly relying on the algo being secure and ofc you can substitute something else. The offset approach is just one of a variety of approaches possible. I.e. just smush secret and seqnum and generate pad for one specific exchange. So bottom line if you can share a manageable little secret, then you can have arguably very secure encryption .
    Replies (1)
    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.

              Continue this thread (1 replies) →