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 integerk
will decrypt to the product of the plaintextm
andk
.I have also updated all
.DeepEqual
calls to just.Cmp
in thepaillier_test.go
when we compare integers. Use of reflection for just an integer comparison feels like a bit too heavy.