DPCA-PSI
Building DPCA-PSI
DPCA-PSI depends on Intel Paillier Cryptosystem Library (IPCL). We choose IPCL because it is certified for ISO compliance. Unfortunately, IPCL introduces a number of issues. Here we provide the following scripts to help users install IPCL (without sudo).
First, install NASM with apt install nasm, or build and install NASM from source code downloaded from NASM’s official page. Assume that you are working in the root directory of NASM source code.
./configure
make -j
make install
Second, build and install IPCL using the following scripts.
Assume that IPCL is cloned into the directory ${IPCL}
and will be installed to the directory ${IPCL_INSTALL_DIR}
.
cmake -B ${IPCL}/build -S ${IPCL} -DCMAKE_INSTALL_PREFIX=${IPCL_INSTALL_DIR} -DCMAKE_BUILD_TYPE=Release -DIPCL_TEST=OFF -DIPCL_BENCHMARK=OFF
cmake --build ${IPCL}/build -j
cmake --build ${IPCL}/build --target install
Third, build JSON for Modern C++ (JSON) using the following scripts.
Assume that JSON is cloned into the directory ${JSON}
.
cmake -B ${JSON}/build -S ${JSON}
cmake --build ${JSON}/build -j
At last, build DPCA-PSI using the following scripts.
Assume that DPCA-PSI is cloned into the directory ${DPCA-PSI}
.
cmake -B ${DPCA-PSI}/build -S ${DPCA-PSI} -DCMAKE_BUILD_TYPE=Release -DIPCL_DIR=${IPCL_INSTALL_DIR}/lib/cmake/ipcl-2.0.0 -Dnlohmann_json_DIR=${JSON}/build
cmake --build ${DPCA-PSI}/build -j
Output binaries can be found in ${DPCA-PSI}/build/lib/
and ${DPCA-PSI}/build/bin/
directories.
Compile Options | Values | Default | Description |
---|---|---|---|
CMAKE_BUILD_TYPE |
Release/Debug | Release | The build type. |
DPCA_PSI_BUILD_SHARED_LIBS |
ON/OFF | OFF | Build a shared library if set to ON. |
DPCA_PSI_BUILD_EXAMPLE |
ON/OFF | ON | Build C++ example if set to ON. |
DPCA_PSI_BUILD_TEST |
ON/OFF | ON | Build C++ test if set to ON. |
DPCA_PSI_BUILD_DEPS |
ON/OFF | ON | Download and build unmet dependencies if set to ON. |
DPCA-PSI further depends on OpenSSL, gflags, Google Logging, and Google Test.
The build system will try to find these dependencies if they exist or will otherwise automatically download and build them.