Research Article

Rank-Based Report Filtering Scheme (RRFS) for Verifying Phoney Reports in Wireless Sensor Networks

Algorithm 3

Guest key generation.
SN: the set of all nodes in the sensor network-SINK
//neighbour of the sink
DN and UN are the corresponding downstream node and upstream node.
DN sends the initiate signal to the UN in RN
for to do
  compute public key
  for to do
   calculate , G (add “” “” times)
  end for
  for to
   DN multiplies its private key with the public key of UN where
     is
   UN multiplies its private key with the public key of DN where
     is
   The product computed by DN and UN is equal
   “” coordinate of this product is the shared secret between DN and UN
   
   end for
  end for