|
Algorithm 1 HE encryption algorithm. |
-
1:
Input N: the number of the households
-
2:
Input P: the plaintext consumption data array of the households
-
3:
Input : the object that performs encryption
-
4:
for do
-
5:
-
6:
-
7:
push c into array
-
8:
end for
-
9:
Output array
|