Research Article

EPPSA: Efficient Privacy-Preserving Statistical Aggregation Scheme for Edge Computing-Enhanced Wireless Sensor Networks

Algorithm 6

The modified Montgomery exponentiation 3 ()
(i)Input: , , , where is computed by the extended Euclidean algorithm.
Output:
(1)
(2) For down to 0
(3)  
(4)  if , then
(5)
(6) return