Skip to main content
. 2019 Feb 23;21(2):212. doi: 10.3390/e21020212
Algorithm 1 Successful attack probability with R keys
Input: Variables L,l,R,t
Output: True if the indicator matrix rank is larger than or equal toL
fori from 1 to Rdo
  key_index_set Randomly select t integers in range of (0, L1)
  ei0 indicator vector of key_index_set of length l
  for j from 1 to l1 do
   eij circular cyclic shift right once of eij1
  end for
  Mistack{ei0,,eil1}
  M=stack{M1,,Mi}
  if rank(M)L then
   return True
  end if
end for