I'm a bit confused by something regarding Tor. As per what I have read and confirmed in this answer Tor: Is a Diffie-Hellman key exchange being done over recipient of traffic? the client does a DH key exchange with each node in the relay.
This results in 3 shared secrets and the client encrypts the message 3 times with each different key.
To decrypt the node uses its shared DH key to peel off a layer.
Problem is that the node must know which DH shared secret to use as I assume there are many clients doing this and the node may have many of these. So in order to use the correct shared secret it needs to know which DH exchange this specific message is for and it can then know the sender.
What an I missing?
Thanks, Chris
I dont understand how this is possible, in order to build up the onion layers keys need to be exchanged to encrypt each layer. If you are saying that the key exhange is also wrapped in onion layers then how those keys created for this?
– Chris Owen Dec 28 '21 at 11:29Can you explain this further, the linked SE answer states that keys are exhanged between client and each hop
– Chris Owen Dec 28 '21 at 11:30