Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Diffie-Hellman Key Exchange #2

Open
paulreimer opened this issue Jan 21, 2018 · 2 comments
Open

Feature Request: Diffie-Hellman Key Exchange #2

paulreimer opened this issue Jan 21, 2018 · 2 comments

Comments

@paulreimer
Copy link

This library works great, and really helps for symmetric encryption where both sides already have the key, but it doesn't provide for any secure key exchange (yet). I believe Diffie-Hellman can be used to do that, is that something that could be added to this library eventually?

Personally my use case is for bootstrapping an IoT device with wifi credentials, over mobile Bluetooth.

@RobbertH
Copy link

Diffie-Hellman is a start, but built on it is Station-to-Station protcol which uses digital signatures in order to prevent man-in-the-middle attacks. Just a suggestion ;)

@paulreimer
Copy link
Author

@RobbertH That's a cool protocol! There are a few times I've used DH that I probably could/should have used that instead.

In my case (IoT device) that would be a place where I would have to personalize the firmware for each device, whereas with pure DH I can re-use the same binary image. (I'm trying to avoid that personalization step, I'd probably use full-on PKI if I did). In my setup, physical security is required to push a reset button, which activates time-limited Bluetooth hardware only for the DH exchange, but in my nightmares I think about all the ways that MITM could still happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants