Added support for a Cypher multiplication #8

Merged
pdyraga merged 3 commits from master into master 2018-07-20 07:14:39 -04:00
pdyraga commented 2018-07-17 09:35:05 -04:00 (Migrated from github.com)

It's now possible to multiply Cypher by an integer.

Paillier is a homomorphic encryption scheme, where an encrypted
plaintext m raised to an integer k will decrypt to the product of
the plaintext m and k.

D( E(m)^k mod N^2 ) = km mod N

I have also updated all .DeepEqual calls to just .Cmp in the paillier_test.go when we compare integers. Use of reflection for just an integer comparison feels like a bit too heavy.

It's now possible to multiply `Cypher` by an integer. Paillier is a homomorphic encryption scheme, where an encrypted plaintext `m` raised to an integer `k` will decrypt to the product of the plaintext `m` and `k`. ``` D( E(m)^k mod N^2 ) = km mod N ``` I have also updated all `.DeepEqual` calls to just `.Cmp` in the `paillier_test.go` when we compare integers. Use of reflection for just an integer comparison feels like a bit too heavy.
didiercrunch commented 2018-07-20 07:14:33 -04:00 (Migrated from github.com)

As always, outstanding code quality that brings true value to the package.

Thousand thanks and continue what you are doing!

didier

As always, outstanding code quality that brings true value to the package. Thousand thanks and continue what you are doing! didier
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: didier/paillier#8