A hello world example

In this hello world example, we will walk you through a simple use case.

  1. First, a client Alice will generate keys and encrypt two numbers.
  2. Then, the cloud will do some homomorphic computations: here, it will compute the minimum of the two numbers.
  3. Finally, Alice will decrypt and print the cloud’s answer

Each of these three steps will be coded as a separate binary, and data that should be transmitted between programs will be saved and loaded in files.

For a quick introduction, you may download the three ready to compile programs here and follow the explanations on the next pages.

Step 1: alice.c - Step 2: cloud.c - Step 3: verif.c - the full API