Algorithm 8: A Practical Scheme for Unbounded FHE

Secret key: Let q 1 , q 2 , , q m be m different prime numbers such that q i p . The m pairwise relatively prime principal ideal lattices I q 1 , I q 2 , , I q m are the secret keys for decryption.

Public Key: Let A i = d i D i ( 1 i m ) , then A χ = { A 1 , A 2 , , A m } are the public key for encryption, where A i = A i E i and E i is given by (3.4) according to the probabilistic distribution χ . The plaintext space is

P = t 1 t 2 t m ,

where t i is the one dimensional modulus of I q i given by (5.1).

Encryption: For any plaintext u = ( u 1 , u 2 , , u m ) i = 1 m t i , then

c = f χ ( u ) = u 1 ¯ A 1 + u 2 ¯ A 2 + + u m ¯ A m ,

where u i ¯ is the embedding of u i into n .

Decryption: For given ciphertext c n , there is an unique vector u i ¯ in the orthogonal parallelepiped F ( I q i ) , such that c u i ¯ ( mod I q i ) , 1 i m . Thus, one has

f χ 1 ( c ) = f 1 ( c ) = ( u 1 , u 2 , , u m ) = u .