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

Send acknowledgement messages to keep keys fresh #4

Open
fabiocolacio opened this issue Dec 21, 2018 · 0 comments
Open

Send acknowledgement messages to keep keys fresh #4

fabiocolacio opened this issue Dec 21, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@fabiocolacio
Copy link
Owner

A user only creates a new private key every time he sends a message, because he must send the public key to his peer.

This means that if one user sends many consecutive messages to another, only the sender will be creating new DH parameters, and the other user's DH parameters will be reused. In order to minimize the reuse of DH information, acknowledgement messages can be incorporated into the protocol.

Every time a user receives a message, that user will create a new pair of DH parameters. He will send a message with an empty body (which is not visible to the users) and the public key, to acknowledge that he received the previous message, and advertise his new key.

This also adds the possibility to add "message read" notifications to users.

@fabiocolacio fabiocolacio added the enhancement New feature or request label Dec 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant