Blog · Encryption
A second encryption layer, and what it leaves to TLS
What a second layer above TLS adds in Omni-Encryption, what stays with TLS, and what stays with you.
What TLS does
TLS protects data between the two ends of one connection. If a proxy, a gateway or a load balancer ends that connection and opens another, the data is readable at that point.
Services and agent fleets inside one organisation often rely on TLS, a private network, or both. Omni-Encryption is designed for the case where the message itself should also be protected, so that a compromise of the network path reveals less.
What the second layer adds
- The application seals the message before it enters the transport. HTTP JSON bodies, agent RPC payloads, chat payloads, audit records and key-value values can be wrapped in an AES-256-GCM envelope.
- Control messages carry an expiry, 300 seconds by default, and a sender counter. Expired and future-dated envelopes are rejected.
- The layer is off until you switch it on and configure a key. When it is off, the adapters pass data through unchanged. Once it is on, the control adapters refuse plaintext input.
- For two peers that need a session, the package adds a hybrid key exchange and authenticated rekeying, and it rejects replayed, reordered, truncated and altered messages.
The cost is in the measurement report: 130 extra bytes per message with AES-256-GCM alone, and about 24 times the time of raw AES-256-GCM at 1 KiB in the same process (2026-12-05, one Apple M4 Max under heavy load).
What it leaves to TLS
- Traffic to third-party and public APIs stays on standard TLS. The package treats recognised public hosts, any dotted DNS name and global IP addresses as public, and then refuses to wrap the traffic or passes it through unchanged.
- A public destination given as http is refused. The package builds a TLS 1.3 client context that uses system CA roots and checks host names.
- It does not replace TLS, access control or host security.
The layer is designed as a contract between your own components. The project's interop notes say it gives no advantage for third-party services.
What it leaves to you
- Key storage. The second-layer key is plaintext hex in a file readable by its owner only, or in environment variables. There is no operating-system keystore, hardware module or passphrase protection.
- Replay protection across receivers. The built-in replay store is designed for one process, so several receivers need a shared atomic store that you supply.
- Network transport. None is provided, because the two peers run in one process.
- Pins. Pins are the operator's burden by design, and trust on first use is vulnerable if the first channel is hostile.
- Message length, IP address and timing. Hiding them is outside what the layer is designed to do.
Where it does not apply
Public web APIs need TLS. Bulk multi-gigabyte transfers should use raw AES-256-GCM or TLS, as the project advises. Omni-Encryption does not meet the need of deployments that require an audited or FIPS 140-3 validated module: it has no independent audit and no FIPS 140-3 validation.
Try it
The evaluation manual walks through the commands that show each of these behaviours, including the classification command that says which traffic stays on TLS and the readiness check for the second layer. The white paper explains the approach and its limits.