Visa-Research / volepsi

Efficient Private Set Intersection base on VOLE
MIT License
98 stars 32 forks source link

Question about PSI ID data type #56

Closed jsuper closed 6 months ago

jsuper commented 6 months ago

Hello professor!

I found the PSI only accept id which data type is unsigned int 64(uint64_t), If the ID type is string (e.g sha256 hash value of phone number). How can i convert it to u64 ? Do algorithms need to be modified?

Thanks very much!

@ladnir

ladnir commented 6 months ago

It take block as input. Not u64. block is 128 bit. For Semi-honest that should be big enough. For malicious, you can choose a random seed/salt and rehash to 128 bit block.

jsuper commented 6 months ago

It take block as input. Not u64. block is 128 bit. For Semi-honest that should be big enough. For malicious, you can choose a random seed/salt and rehash to 128 bit block.

OK, thanks professor