A hello world example
In this hello world example, we will walk you through a simple use case.
- First, a client Alice will generate keys and encrypt two numbers.
- Then, the cloud will do some homomorphic computations: here, it will compute the minimum of the two numbers.
- 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