Newshot

AI, Crypto, and Quantum Computers. What Anthropic's announcement means for us.

Original text(via HN AI)

A quick overview of where we are in light of Anthropic’s recent announcement.

Recall that several months ago, Anthropic’s researchers found weaknesses in HAWK, a “post-quantum” digital signature scheme that relied on the hardness of the Lattice Isomophism problem. Well, now they’ve announced that they’ve made further progress on lattices, and it is likely to turn out (now, or in the near future) that lattices are what many of us suspected for years: susceptible to Quantum-friendly speedup algorithms like Grover’s or Shor’s – just like elliptic curves, and prime number factorization. What’s interesting is none of the above have been proven to be NP-Complete. So even if P != NP, these specific problems underlying most of our cryptography could be solved much quicker than we imagine, using quantum computers.

Signatures

NIST had been holding a competition for which algorithms can be used to secure information even in the face of a Quantum Computer with enough qubits and error correction to crack “classical” encryption. Most of the algorithms were based on lattices. HAWK was ultimately withdrawn from NIST recommendations as a post-quantum algorithm, and I imagine Dilithium will be as well. That leaves one main algorithm, based on Lamport signatures and hashes: the SPHINCS+ algorithm.

Unlike the others which rely on mathematically nice “trap-door” functions, SPHINCS+ and Lamport signatures rely on cryptographic hash functions, which are much harder to study mathematically, because they violently change the output for even one bit of change in the input, by employing the avalanche effect. This is also why you can’t train traditional neutral networks to reverse a hash, since they’re not at all continuous. One might wonder whether a genetic algorithm or some other way of training models (e.g. using rainbow tables) could somehow reverse these hashes, but it’s not in the cards; and besides – no one seems to be doing that kind of research, anyway, at nearly the scale these labs are training models using backpropagation.

So, if you want to your projects and distributed systems to be secure for decades, even after quantum error correction becomes is really good, make sure your algorithms can switch to SPHINCS+ everywhere for cryptographic signatures. Today, you can keep using smaller signatures like Shnorr (elliptic curves) or BLS (bilinear elliptic curves), but you should build in Cryptographic Agility to be able to switch when needed. However, you must take care not to enable attackers to Harvest Now, Decrypt Later. Carefully consider what public keys your system lets people store, and whether they are rotated every so often.

Encryption

Many people don’t realize this, but encryption algorithms are different than digital signatures. The word “crypto” makes people think of encryption, but in fact, it is often used for asymmetric digital signatures. Encryption, on the other hand, is based on symmetric keys, that are often protected by key exchanges involving asymmetric keys, such as the Diffie-Hellman Key Exchange. There are “post-quantum” versions of the latter, such as CRYSTALS-Kyber and ML-KEM, but guess what: they’re once again based on lattices. So they’re probably going to turn out no better than the elliptic curve versions.

However! Our mainstream encryption algorithms are quantum-secure, just like the cryptographic hash functions. The most used today is probably Advanced Encryption Standard in Galois/Counter Mode, or AES-GCM. This provides both encryption and authentication . The initialization vectors for encryption are derived using techniques described below.

Key Derivation

A third technique in crypto is deriving secrets from other secrets. Think of your “BIP32” wallets for Bitcoin, where the secret key you import unlocks an unlimited number of Bitcoin addresses, each one based on a secret that can’t be linked to any other, without knowing the initial secret and being able to reconstruct the key derivation tree.

The usual way to derive keys is called HKDF, which is a Hash-based Key Derivation Function, and it’s based on HMAC, the Hash-based Message Authentication Code technique to sign messages using cryptographic hashes and symmetric secrets. Using HKDF, you can generate a tree of secrets from a root secret. The cool thing about that is, you can share the root of a subtree with someone, and they would be able to derive the nodes of that subtree (e.g. sharing one file out of a folder). Remember, though, that the secrets are symmetric, which means whatever you can sign or decrypt using keys in that subtree, they can sign or decrypt as well.

Secrets are used to derive asymmetric public-private keys. And secrets can be wrapped and encrypted by public-private keys. Just make sure that the wrapping and exchanging is short-lived, to prevent “harvest now, decrypt later” described earlier.

Long story short: if you stick to SPHINCS+, AES-GCM, and HKDF you’ll be secure against quantum computers. They’re pretty much the only game in town.

New Standards

So, your Bitcoin and Ethereum is very likely safe for the next several years. However, when it comes to being prepared for post-quantum signatures and encryption, I want to share a couple links for you to explore. Disclaimer: I originated the projects I am linking to.

  • OpenClaiming.org – a simple and straightforward protocol for signing any sort of claims, with extensions for payments, authorization, delegation, etc. Works out of the box with both mainstream Web / Mobile technology (P-256 curve, SHA-256) and Bitcoin / Ethereum blockchains (K-256 curve, EIP-712). The protocol is open, as are its reference implementations for PHP, Javascript, Go, Swift, Java, etc.
  • SafeCloud – a decentralized and end-to-end encrypted storage solution, for streaming videos, storing computer backups, or anything you like using protocols like IPFS, Git, S3 (from AWS), and MySQL wire format. So it can be used as a secure database, an encrypted git repo, or anything in between. It can also stream videos on demand to players embedded in websites (that’s what it was designed for originally). It uses Merkle trees and Prolly trees from the bottom up (for integrity), and HKDF derivation from the top down (for decryption / delegation). The source code is open on GitHub, so you can study how it works.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗