How to generate a session key between two nodes in two different subnets when the nodes don't know each other directly, using diffie hellman algorithm?
If the nodes can send messages two each other ( via any number of hops/ intermediate nodes) then you can do straight standard diffie-hellmen even if they don't have a prior relationship. Indeed, thats the point of diffie-hellmen.
However, any one of the intermediate nodes could launch a man in the middle attack and could then impersonate either node to the other. There is no way to stop this if the nodes actually don't know anything about eachother. If they do know each other, you can used authenticated diffie-helmen key exchange or a public key crypto system.Agian, these only work if the nodes know each other's public key before hand
protected by Antony Vennard May 24 '12 at 14:44
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.