momalab/e3

Tutorial | Step 4: Question about Alice's result

pjattke opened this issue · 1 comments

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.

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