Skip to main content
. 2022 Jun 8;22(12):4359. doi: 10.3390/s22124359
Algorithm 4. Pixel Diffusion
Input: The Array E, secret key K3=(ϕ(0),β), CTM (3)
Output: Encrypted image C′.
  •   1.

    Generate a sequence W={W1,W2,…,WM} with key K3 and CTM (3).

  •   2.
    A sequence W is transformed into an integer sequence by the given Equation (4)
    PK=floor(mod(WK×1014,256)) (4)
  •   3.
    Mix each element of E with the parallel element of PK and a bitwise XORing is performed to make an array
    Cj=Pj⊕Ej⊕Cj−1,j=1,2,…,M.
  •   4.
    Change the array Cj in the matrix form named as C′ of the size of
    M=P×Q×3.