Closed Keepmoving-ZXY closed 2 years ago
ECDH assumes same set sizes. Its pretty simple to lift this requirement. I bet you could do it.
KKRT allows different set sizes. https://github.com/osu-crypto/libPSI/blob/master/libPSI/PSI/Kkrt/KkrtPsiReceiver.cpp#L41
For ECDH, it's simple to lift this requirment, because the input of ECDH is 128 bit, just the output of md5 and the probability of md5 output 0 is very small, I can fill 0 to left this requirment. And I am happy to hear the KKRT allow different set size, thank you.
not sure what you mean. The ECDH impl just assumes that the sets are of the same size. You could change this. For example, this loop iterates the right number of times but this loop would need to iterate over the number of items the other party has. The same basic thing would apply to EcdhPsiReceiver.cpp.
Maybe I need a better understand of ECDH impl, I will see the impl later, thank you very much.
I find that the
frontend.exe
has a limit that count of id in two party must be the same, otherwise an error occurs in each party, below is error of each party in this case:I think it is normal that count of each party is different, so does this limit come from the code of
frontend.exe
, not the psi implement?