logoalt Hacker News

littlecranky67last Friday at 6:22 AM2 repliesview on HN

I get how that works for arithmetic operations - what about stuff like sorting, finding an element in a set etc? This would require knowledge of the cleartext data, wouldn't it?


Replies

barisozmenlast Friday at 6:24 AM

You can reduce anything happening on the computer to arithmetic operations. If you can do additions and multiplications, then it's turing complete. All others can be constructed from them.

show 2 replies
j2kunlast Friday at 6:27 PM

Comparisons can be implemented by approximating a < b with

    0.5 * (sign(a - b) + 1)
And the sign function can be approximated by a polynomial that uses only additions and multiplications and products with constants.

Other FHE schemes have support for small-bitwidth lookup tables that makes supporting comparison more direct.