Tor Announces Counter Galois Onion to Replace Its Circuit Encryption

By Doug Roberts · Originally published
Heads up: this guide was written in 2025. Tools, versions and threat models have changed a lot since then, so check the current documentation before you rely on any of it.

The Tor Project on November 24, 2025 said it is retiring the encryption that protects traffic as it hops across a circuit, and replacing it with a design called Counter Galois Onion. Nick Mathewson wrote the post. The algorithm being replaced never had a name. Tor is calling it tor1, so there is something to point at. This is not the TLS that already wraps the link between two relays. It is the extra layer on each relay cell, the one a relay peels off before handing the cell to the next hop.

Mathewson lists three problems with tor1, and ranks them. The one he says is worth fixing on its own is a tagging attack. Because tor1’s stream cipher has no hop-by-hop authentication, an attacker who can modify traffic at one point on a circuit and watch it at another can plant a mark and look for that mark later. Honest circuits fail. The client builds another one, and can eventually land both ends on relays the attacker runs. Tor clients already warn when too many circuits die. Those warnings also fire, he notes, when the network is simply under a heavy denial-of-service load, so they are a blunt detector.

The other two problems are smaller, and he says so. The same keys last for the whole life of a circuit, so forward secrecy starts when the circuit closes, not when a cell is decrypted. Circuits sometimes live for days. And the authenticator is 4 bytes, plus SHA-1. A 4-byte digest means about a one-in-4-billion chance of forging a cell that still checks out. Miss, and the circuit dies.

Counter Galois Onion comes from Jean Paul Degabriele, Alessandro Melloni, Jean-Pierre Münch, and Martijn Stam. Tor says its specification, proposal 359, matches their paper and their reference code. In the project’s description, if anyone tampers with a cell, that cell and every cell after it become unrecoverable, and the keys update so an earlier cell cannot be opened with the keys still on hand. The authenticator grows to 16 bytes. Mathewson also writes that the security proof is new and has not had a long public battering, and that he does not expect CGO to be weaker than tor1 even if a flaw shows up later.

It is not what users are running today. The cryptography is implemented in Arti, the Rust Tor, and in the C implementation relays still use. In Arti it is marked experimental. Onion services cannot negotiate it yet, and that work is described as likely to stay Arti-only. The next step he names is to turn CGO on by default in Arti, then tune it for current CPUs. Our 2017 piece on what Tor Browser does not hide is about exit relays, JavaScript, and plugins. Those limits are still there. CGO is a change one layer down, in how a cell is encrypted between relays, and it is not switched on.

Sources: Tor Project; Tor proposal 359.