/paillier

Homomorphic encryption via the Paillier cryptosystem in Go. Supports addition, subtraction, multiplication, and division.

Primary LanguageGoMIT LicenseMIT

Paillier

Homomorphic encryption using the Paillier cryptosystem implemented in Go

The following operations are supported

  • Addition of two encrypted integers
  • Subtraction of two encrypted integers
  • Addition of an encrypted and plaintext integer
  • Multiplication of an encrypted and plaintext integer
  • Division of an encrypted integer by a plaintext integer in cases where x mod y == 0

See int_test.go for example usage.