News for hackers. Stuff that matters.
Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by paulrudy on Friday July 18, 2025 @01:20AM (#44601474)
> FHE enables computation on encrypted data

This is fascinating. Could someone ELI5 how computation can work using encrypted data?

And does "computation" apply to ordinary internet transactions like when using a REST API, for example?

Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by dachrillz on Friday July 18, 2025 @02:00AM (#44601661)
A very basic way of how it works: encryption is basically just a function e(m, k)=c. “m” is your plaintext and “c” is the encrypted data. We call it an encryption function if the output looks random to anyone that does not have the key

If we could find some kind of function “e” that preserves the underlying structure even when the data is encrypted you have the outline of a homomorphic system. E.g. if the following happens:

e(2,k)*e(m,k) = e(2m,k)

Here we multiplied our message with 2 even in its encrypted form. The important thing is that every computation must produce something that looks random, but once decrypted it should have preserved the actual computation that happened.

It’s been a while since I did crypto, so google might be your friend here; but there are situations when e.g RSA preserves multiplication, making it partially homomorphic.

Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by littlecranky67 on Friday July 18, 2025 @02:22AM (#44601759)
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?
Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by barisozmen on Friday July 18, 2025 @02:24AM (#44601772)
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.
Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by littlecranky67 on Friday July 18, 2025 @02:36AM (#44601851)
While correct, that doesn't answer the question at all, though. If I have my address book submited into an FHE system and want to sort by name - how do you do that if the FHE system does not have access to cleartext names?
Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by barisozmen on Friday July 18, 2025 @02:45AM (#44601916)
You can do that by encrypting the names. You send encrypted names to the FHE-server, and then the server does necessary sorting computations on it.

The point of FHE is it can operate on gibberish-looking ciphertext, and when this ciphertext decrypted afterwards, the result is correct.

Indeed, there are those working on faster FHE sorting: https://eprint.iacr.org/2021/551.pdf

Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by gadders on Friday July 18, 2025 @04:55AM (#44602606)
Honestly it breaks my brain as well. I just have to take it on trust that it apparently works.
Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by Tryk on Friday July 18, 2025 @07:36AM (#44603569)
When comparing two ciphertexts A,B a FHE sorting function will output a sorted pair of two new ciphertexts:

E.g. FHE_SORT(A,B) -> (X,Y)

where Dec(X)<Dec(Y)

But without decoding, there's no way of knowing whether X (or Y) comes from A or B.

Source: II. D of https://eprint.iacr.org/2015/995.pdf

Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by dcow on Friday July 18, 2025 @10:11AM (#44604844)
It’s not that simple. The client has to send the server the comparison function.

To do anything practical the server usually needs to provide the client with gigabytes of per-client-key encrypted seed data.

Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by j2kun on Friday July 18, 2025 @02:27PM (#44608185)
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.

Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by xhrpost on Friday July 18, 2025 @06:59AM (#44603282)
This made me wonder if there is such a thing as homomorphic compression. A cursory search says yes but seems like limited information.
Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by Tryk on Friday July 18, 2025 @07:07AM (#44603336)
What do you mean by homomorphic compression?

Given that the operations you can execute on the ciphertext are Turing complete (it suffices to show that we can do addition and multiplication) then it follows that any conceivable computation can be performed on the ciphertext.

Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by xhrpost on Friday July 18, 2025 @08:06AM (#44603781)
Oh this is outside the context of encryption. My curiosity was, is there such a compression function that permits operations on the compressed data without first decompressing it?
Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by dachrillz on Friday July 18, 2025 @08:37AM (#44604029)
One that is kind of in this spirit is that you can describe sparse matrices by omitting all the zeros and only describe the indices that have data. In this compression you can still perform normal matrix operations without having to unpack them into the “normal form”. Now this is neither encryption nor a particularly interesting compression, but it does prove that it is possible in principle ;p
Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by JohnFen on Friday July 18, 2025 @10:16AM (#44604892)
> If we could find some kind of function “e” that preserves the underlying structure even when the data is encrypted

But isn't such a function a weakened form of encryption? Properly encrypted data should be indistinguishable from noise. "Preserving underlying structure" seems to me to be in opposition to the goal of encryption.

Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by paulrudy on Friday July 18, 2025 @11:28AM (#44605785)
Thank you, this really clarified things for me!
Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by pluto_modadic on Friday July 18, 2025 @01:41AM (#44601576)
a simple example of partial homomorphic encryption (not full), would be if a system supports addition or multiplication. You know the public key, and the modulus, so you can respect the "wrap around" value, and do multiplication on an encrypted number.

other ones I imagine behave kinda like translating, stretching, or skewing a polynomial or a donut/torus, such that the point/intercepts are still solveable, still unknown to an observer, and actually represent the correct mathematical value of the operation.

just means you treat the []byte value with special rules

Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by paulrudy on Friday July 18, 2025 @01:46AM (#44601596)
Thank you. So based on your examples it sounds like the "computation" term is quite literal. How would this apply at larger levels of complexity like interacting anonymously with a database or something like that?
Re:Fully Homomorphic Encryption and the Dawn of a Truly Priv... by strangecasts on Friday July 18, 2025 @04:24AM (#44602472)
There are FHE schemes which effectively allow putting together arbitrary logical circuits, so you can make larger algorithms FHE by turning them into FHE circuits -- Jeremy Kun's 2024 overview [1] has a good summary

[1] https://www.jeremykun.com/2024/05/04/fhe-overview/ - discussed previously: https://news.ycombinator.com/item?id=40262626