Research Article

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

Algorithm 5

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