Algorithm 6: Generating Algorithm for Secret Key

· Randomly select m different prime numbers q 1 , q 2 , , q m such that q i p . The principal ideal lattices

I q i = α q i , 1 i m

are the secret key, and the corresponding one dimensional modulus t q i given by

t q i = t ( I q i ) = q i n q i n 1 + q i + 1. (5.1)