Added EncryptWithR allowing to specify the randomness #6

Closed
pdyraga wants to merge 0 commits from encrypt-with-r into master
pull from: encrypt-with-r
pdyraga commented 2018-07-09 03:39:36 -04:00 (Migrated from github.com)

Function EncryptWithR lets to specify randomness r explicitly. For
some ZKPs based on the Paillier scheme, it's required to use the same
r for encryption and construction of ZKP. It wasn't possible previously,
because r was generated internally and never returned.

I did not want to modify Encrypt to return r because it would break
existing code using this API, as well as, I wanted to make sure person
using the specific r and using it somewhere else really knows what
he's doing.

Function `EncryptWithR` lets to specify randomness `r` explicitly. For some ZKPs based on the Paillier scheme, it's required to use the same `r` for encryption and construction of ZKP. It wasn't possible previously, because `r` was generated internally and never returned. I did not want to modify `Encrypt` to return `r` because it would break existing code using this API, as well as, I wanted to make sure person using the specific `r` and using it somewhere else really knows what he's doing.
pdyraga commented 2018-07-09 03:42:23 -04:00 (Migrated from github.com)

Sorry, my bad, was to eager with opening the PR. Want to pass it through review and merge internally first.

Sorry, my bad, was to eager with opening the PR. Want to pass it through review and merge internally first.

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: didier/paillier#6