instead of doing two diffiehellmans, do one, plus send a random buffer.
then my encryption key will be hash(dhSecret, myRandom), and the other will use hash(dhSecret, yourRandom)
The most expensive thing about the handshake is the exponentiation - required by diffiehellman,
a hash is cheap by comparison.
instead of doing two diffiehellmans, do one, plus send a random buffer. then my encryption key will be hash(dhSecret, myRandom), and the other will use hash(dhSecret, yourRandom)
The most expensive thing about the handshake is the exponentiation - required by diffiehellman, a hash is cheap by comparison.
This will of course, add another parameter.