Algorithm 3 Dynamic binary scrambling algorithm |
-
Input:
The input image , obtained in hash value stacking, and the key streams and .
-
1:
Get the height M and width N of ;
-
2:
Set ;
-
3:
Set ;
-
4:
-
5:
-
6:
Set ;
-
7:
Sort to get the index vector .
-
8:
for to N do
-
9:
;
-
10:
end for
-
11:
Set ;
-
12:
Sort to get the index vector .
-
13:
for to N do
-
14:
;
-
15:
end for
-
Output:
The output image .
|