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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
It's now possible to multiply
Cypherby an integer.Paillier is a homomorphic encryption scheme, where an encrypted
plaintext
mraised to an integerkwill decrypt to the product ofthe plaintext
mandk.I have also updated all
.DeepEqualcalls to just.Cmpin thepaillier_test.gowhen we compare integers. Use of reflection for just an integer comparison feels like a bit too heavy.As always, outstanding code quality that brings true value to the package.
Thousand thanks and continue what you are doing!
didier