Add ephemeral encryption option to nymserv#1
Open
rxcomm wants to merge 17 commits intocrooks:masterfrom
Open
Conversation
Manipulating Axolotl has been simplified and the `generic.db` file could be removed due to pyaxo's new method to create states. The modes (Alice and Bob) being used by the nym server and the nym were swapped, based on the latest protocol specification (Oct/2014), where Alice needs Bob's Diffie-Hellman Ratchet Key to start ratcheting.
Use new feature from pyaxo 0.4.1 and swap modes
This commit implements (by hand) Steve's acksend changes in his commit 85d1680. They wouldn't apply cleanly over my ephemeral changes, so I added them by hand.
Changes from crooks/nymserv@85d1680 also assigned a boolean value for positive fields being parsed by `make_moddict`, but did not update where `'yes'` was expected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These changes add an ephemeral encryption option to nymserv. The configuration header to enable this new option is:
ephemeral: <your ephemeral encryption key here>
Key management for ephemeral keys is done using the Axolotl protocol as implemented in the pyaxo python module from https://github.com/rxcomm/pyaxo. Installation of pyaxo and dependencies is required for the nymserv script to run with the changes in this pull request. The ephemeral encryption key in the configuration header serves as the shared secret between nymserver and client to initialize the key database. A python script to manage client-side encryption keys, create nyms with ephemeral encryption, and use the nymserver (together with some brief documentation) is available for download at http://anemone.mooo.com/nymserver.
Note that all original nymserv configuration options are preserved. These changes only add the ephemeral option.