momalab / e3

E3: Encrypt-Everything-Everywhere framework for compiling C++ programs with encrypted operands.
GNU General Public License v3.0
91 stars 23 forks source link

Tutorial | Step 4: Question about Alice's result #5

Closed pjattke closed 4 years ago

pjattke commented 4 years ago

In Step 4 of your tutorial you state:

And in your project directory

    cp $E3/src/e3int.h ./
    cp $E3/src/e3key.h ./
    cp $E3/src/cgtshared.* ./
    cp $E3/src/cgtkey.* ./
    $E3/src/cgt.exe gen -r $E3/src
    g++ -std=c++17 -DE3KEY=1 a.cpp secint.cpp cgtshared.cpp cgtkey.cpp -o alice.exe
    ./alice.exe

Should print 6.

However, executing this prints:

Secure[0,1,1,0,0,0,0,0]

I assume that is because the result is still encrypted because in the demo code (file a.cpp) no decryption of the computed result is included.

mazonka commented 4 years ago

I have fixed the description, to reflect that. The source files were correct.