Research Article

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

Algorithm 4

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