Research Article

RFA: -Squared Fitting Analysis Model for Power Attack

Algorithm 1

-squared fitting analysis steps on S-box output.
Input: random plaintexts ,
   template .
Output: .
(1)  Encrypt and acquire traces
(2)  for do
(3)      for do
(4)  
(5)  
(6)      end for
(7)      Compute thebetween
    and
(8)  end for
(9)  return