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

Boxer for secret sharedkey #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tigusoft
Copy link

Boxer/unboxer can now work with a secret preshared key, instead of my privkey + his pubkey.

Done as other constructor.

Needed to move stuff to a base class so it's nicer, but it should be 0-overhead (base class doesn't have vtable).

* Boxes a series of messages between sender's secret key and a receiver's public key using automatically generated nonces.
* The sequential part of nonces is even if the sender's public key is lexicographically smaller than the receiver's public key, and uneven (odd, not divisible by 2) otherwise.
* The sequential part of nonces is even if the sender's public key is lexicographically smaller than the receiver's public key, and uneven otherwise.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The clarification of the word uneven went missing here.

@tigusoft-vm
Copy link

@rubendv thanks for wording corrections, will apply them soon.

About the TODO, it's for an issue we found, we're not yet fixing it and our code still does same mistake for now - #14

There is one important thing wrong in this PR we made: it does not make too much sense for unboxer to have default value of nonce_constant (the random nonce).
We should I guess document that, or just remove the defaulted value.

@rubendv
Copy link
Owner

rubendv commented Apr 28, 2016

Okay, I'll wait for you to fix the default value and then it can be merged. Thanks for the PR!

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

Successfully merging this pull request may close these issues.

3 participants