Package viff :: Module paillier
[hide private]
[frames] | no frames]

Module paillier

source code

Paillier crypto system and two-party runtime.

The :class:`PaillierRuntime` is a special two-player runtime based on the homomorphic Paillier crypto system.

From the paper "Public-Key Cryptosystems Based on Composite Degree Residuosity Classes" by Pascal Paillier in EUROCRYPT 1999, 223-238.

Classes [hide private]
  PaillierRuntime
Two-player runtime based on the Paillier crypto system.
Functions [hide private]
 
L(u, n) source code
 
generate_keys(bit_length) source code
 
encrypt(m, (n, g)) source code
 
encrypt_r(m, r, (n, g)) source code
 
decrypt(c, (n, g, lm)) source code