Skip to main content
. 2023 Jan 20;23(3):1210. doi: 10.3390/s23031210
Algorithm 1 S-Box generation.

Input:  Xn,ρ,I

Output: S-Box

 

  1:  while (i < 300) do

  2:     iterate PWLCM with xn

  3:     set xn+1=xn

  4:     XFloor(x×256)

  5:     if XSBox then

  6:         Sub-Box X

  7:         = i=i+1

  8:     else

  9:         iterate PWLCM with xn

10:     end if

11:     Optimization

12: end while