dominictarr / private-stream

MIT License
9 stars 1 forks source link

idea to improve performance #2

Closed dominictarr closed 9 years ago

dominictarr commented 9 years ago

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.

dominictarr commented 9 years ago

I forgot I wrote this, but implemented the idea, except using the local/remote public (diffie helman) keys.