cryspuwaterloo / DiPSI

Differentially Private Set Intersection implemented with HELib. The official implementation for our EuroSP 2020 paper.
https://www.ieee-security.org/TC/EuroSP2020/
Apache License 2.0
8 stars 3 forks source link

Update ./src/PSIServer.cpp for cardinality mode #3

Open GiorgiaS opened 2 years ago

GiorgiaS commented 2 years ago

I suggest this change because if you are in the "CARDINALITY" mode, the "if" at line 196 will result in the following error during the matching: "terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 0) >= this ->size() (which is 0)"