mchlnix / PyMix

A mix chain implementation in Python using UDP
0 stars 0 forks source link

How should the key distribution work? #6

Closed mchlnix closed 6 years ago

mchlnix commented 6 years ago

Since our mixes don't use asymmetric cryptography yet, we have to get the keys of the mixes to the client, or rather have the client generate keys and get them to the mixes.

How would this work?

mchlnix commented 6 years ago

It seems a channel init message at the start of transmission from a client to a destination is necessary to facilitate the key exchange. The client program or EntryPoint needs to know Mix-specific keys to encrypt this initial message, however, which probably means that the Mixes need to support asymmetrical encryption in the future.

mchlnix commented 6 years ago

The mixes now support asymmetrical encryption, which is used to send a channel init message, containing the symmetric keys specific to that channel.