Skip to content

Boxer for secret sharedkey#13

Open
tigusoft wants to merge 2 commits into
rubendv:masterfrom
tigusoft:pr-boxer-secret-sharedkey
Open

Boxer for secret sharedkey#13
tigusoft wants to merge 2 commits into
rubendv:masterfrom
tigusoft:pr-boxer-secret-sharedkey

Conversation

@tigusoft
Copy link
Copy Markdown

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).

* 1)
* 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
Copy Markdown
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
Copy Markdown

@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
Copy Markdown
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