Algorithm 3: Generating Algorithm for Secret Key

First Step. Randomly select an non-zero vector α n as input, and the output is the following relatively prime two ideal I 1 and I 2 , where

I 1 = α , and I 2 = e α .

Second Step. Randomly select two non-zero vectors α 1 I 1 and α 2 I 2 as

input, and the output is the following ideal I 3 , where

I 3 = e α 1 α 2 .

It is easy to see that I 1 , I 2 , I 3 are pairwise relatively prime ideals.

Last Step. Suppose that m 1 pairwise relatively prime ideals I 1 , I 2 , , I m 1 are selected, then one randomly finds α 1 I 1 , α 2 I 2 , , α m 1 I m 1 , α i 0 , and the output ideal I m given by

I m = e α 1 α 2 α m 1 .

Obviously, I 1 , I 2 , , I m are pairwise relatively prime ideals in n .