Livoa LogoLivoa
Tor Onion Routing: AES, RSA, SHA, and TLS Working Together
Tor Client (User)


• Builds 3-hop circuit

• Generates per-hop AES keys

• Onion-encrypts payload (AES)

• Uses SHA digests for integrity

Entry / Guard Node


• TLS session with client (RSA handshake)

• Removes outer AES layer

• Forwards to Middle relay

• Sees origin IP, not destination

Middle Relay


• Independent TLS session

• Removes middle AES layer

• Forwards to Exit node

• Sees only next hop

Exit Node


• Independent TLS session

• Removes final AES layer

• Sends data to destination

• Cannot identify original sender

Onion Encryption (Client Side)


→ Sent via TLS to Entry node

Key Exchange & Derivation


• TLS handshake authenticates relays via RSA certificates

• Ephemeral Diffie–Hellman → shared secret per hop (Perfect Forward Secrecy)

• SHA-based KDF derives symmetric AES keys (K_entry, K_middle, K_exit)

• Client stores all keys; each relay knows only its own key

Destination Server


• If HTTPS: end-to-end TLS between client & server

• Exit node sees only ciphertext (not content)

Legend & Notes


• TLS (blue dashed): Provides authentication & confidentiality per hop (RSA handshake, AES bulk encryption, SHA integrity, DH for PFS).

• Onion Layers (orange): Client encrypts data three times with AES (Exit→Middle→Entry keys); each relay decrypts one layer.

• SHA (brown): Ensures integrity for Tor cells and key derivation (KDF).

• Privacy: No relay knows both sender and receiver. Exit sees plaintext only for HTTP traffic.

• Limitation: Global adversaries may attempt traffic correlation; Tor mitigates but cannot fully prevent timing analysis.

TLS
TLS
TLS

Advanced Cyber

by Damil

0
0 uses