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

  1. All you need to share with Visa and Mastercard is a deterministic process (e.g. their app) to generate a random sequence, and a seed, and an offset.

    Take a fast and cryptographically secure hash like BLAKE3, hash the seed, slice 1 byte, use rest as input to next round of hash, repeat.

    Now you have a practically random stream of bytes that can be generated by anyone with the same process and seed. Offset lets you share the seed once and count off offsets for blocks of bytes used for your one time pad. If Visa and Mastercard decide to settle on a fixed transaction size in bytes, then the offset is just a counter or txn number.

    Replies (1)
    1. What you're describing is a symmetric encryption scheme based on the security of BLAKE3. With this, you don't actually need a stateful concept of 'offset'; you can just combine the shared secret with a random long seed each time, which doesn't need to be kept secret or be particularly high-quality randomness (it only needs to not repeat). This is an IV.

      The scheme works, but there's no particular reason to expect BLAKE3 to be more secure than AES, other than because it's slower.

      Replies (1)
      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.

              Continue this thread (1 replies) →