Skip to main content
. 2022 Jan 12;22(2):579. doi: 10.3390/s22020579
Algorithm 2. Pseudo code for DAM4SNC authentication function
INPUT: Number of nodes, Target security level each node
1  def authentication ():
2    randomly sample N1~i (nodes to authenticate)
3    randomly sample M1~j (nodes to be authenticated)
4    Tm = Tm + (Tn/hop) // parallel and simultaneous authentication
5    if Tm == target_level:
6      transfer datam