aboutsummaryrefslogtreecommitdiff
path: root/spec/rend-spec/encrypting-user-data.md
blob: 460f71e954b93cfcbf63234b0b2ec7a42754d39f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<a id="rend-spec-v3.txt-5"></a>

# Encrypting data between client and host

A successfully completed handshake, as embedded in the
INTRODUCE/RENDEZVOUS messages, gives the client and hidden service host
a shared set of keys Kf, Kb, Df, Db, which they use for sending
end-to-end traffic encryption and authentication as in the regular
Tor relay encryption protocol, applying encryption with these keys
before other encryption, and decrypting with these keys before other
decryption. The client encrypts with Kf and decrypts with Kb; the
service host does the opposite.