|
Algorithm 3 Master Keygen |
-
Input:
Security parameter N, prime q,
-
Output:
KGC’s public key and secret key .
-
1:
Sample .
-
2:
if or or fmodq or gmodq then
-
3:
-
4:
end if
-
5:
if max( then
-
6:
-
7:
end if
-
8:
and , respectively. The resultant of f can be straightforwardly calculated as (mod where is the cyclotomic polynomial . The details of the operation can refer to [36]
-
9:
Compute satisfy , by the Extended Euclidean Algorithm where and are integers.
-
10:
if
then
-
11:
-
12:
end if
-
13:
Use the Extended Euclidean Algorithm to find and satisfy , that is, we have
-
14:
Let , , then (mod )
-
15:
return The KGC’s master public key , KGC’s master secret key , where , , and are anti-circulant matrices, and their ith row consists of the coefficients of the polynomial , , and , respectively.
|