Research Article

SPCTR: Sealed Auction-Based Procurement for Closest Pre-Tender with Range Validation

Algorithm 3

CloPCmp.
Input:
At PM: the encrypted bids , the encrypted pre-tender ;
At PA: The key pair ();
Output:
At PM: The index of the supplier who owns the closest pre-tender bid
At PA: ;
(1)At PM:
(2)Choose number of -bit random values ;
(3)for to do
(4) Compute
(5)Send to PA;
(6)At PA:
(7)for to do
(8) Decrypt to get ;
(9) Compute ;
(10) Re-encrypt ;
(11)Send to PM;
(12)At PM:
(13)for to do
(14) Compute
(15)
(16)return