Algorithm whitepaper

Version v1.0 · 2026-08

DiskTank uses widely validated modern cryptographic primitives to build end-to-end encrypted, auditable, censorship-resistant tunnels. This document explains the algorithm choices and protocol design for engineers and security researchers.

1. Cryptographic primitives

2. Handshake and key exchange

IKpsk2 completes the handshake with a shared pre-shared key (PSK, issued by the control plane per group), verifying both the PSK and long-term identity keys. On success, both sides derive ephemeral session keys for the data plane.

3. Data-plane encryption

Packets are encrypted end-to-end, then carried by the underlying transport (UDP / DTLS / WSS). Relays forward ciphertext only and cannot decrypt or tamper. MACs ensure any tampering is detected and dropped immediately.

4. Anti-censorship transport

5. Key management

Group PSKs are generated by the control plane and delivered encrypted, with scheduled rotation. Device identity keys are generated locally and never leave the device. Relays hold no keys that can decrypt session traffic.