Skip to main content
. 2022 Jun 8;22(12):4359. doi: 10.3390/s22124359
Algorithm 2. Key Generation of Permutation Process
Input: Equation of plane ax+by+cz=d,a,b,c,d∈ℜ.
Output: Orthogonal matrix K2.
  •   1.
    Let the orthogonal line O be spanned by the unit vector t
    t=(a,b,c)a2+b2+c2,
    from the expression Zw=w−2t〈w,t〉, where 〈w,t〉 is the inner product of w and t.
  •   2.
    For w={w1, w2,w3,…,wm}∈Rm be the basis of O. The basis vectors for m=3 are
    w1=[w11,w12,w13]=[1,0,0]w2=[w21,w22,w23]=[0,1,0]w3=[w31,w32,w33]=[0,0,1].
  •   3.
    The orthogonal key matrix K2 will be
    K2=[zw11zw12zw13zw21zw22zw23zw31zw32zw33].