Skip to content
ladnirPublic

About

No description, website, or topics provided.

Resources

Stars

16 stars

Watchers

1 watching

Forks

Repository files navigation

Vole-PSI

volePSI implements standard private set intersection (PSI) and circuit PSI, where the result is secret shared between the parties. It is based on VOLE-PSI: Fast OPRF and Circuit-PSI from Vector-OLE and Blazing Fast PSI from Improved OKVS and Subfield VOLE.

The C++ library builds on Windows, Linux, and macOS. Its main dependencies include libOTe and Coproto.

Build

The build requires Python 3, CMake 3.15 or newer, a C++20 compiler, and Git. build.py fetches dependencies as needed.

git clone https://github.com/ladnir/volepsi.git
cd volepsi
python3 build.py

For TCP networking support, build with Boost enabled:

python3 build.py -DVOLE_PSI_ENABLE_BOOST=ON

The library and frontend executable are written under out/build/<platform>/.

Use

Run frontend without arguments for file-based PSI, example, benchmark, and unit-test options. The socket example shows network setup; the message-passing example shows how to exchange protocol messages in an application.

The -okvs baxos|ribbon option selects the OKVS backend. Baxos is the default; both parties must select the same backend.

Install and link

Install volePSI and its fetched dependencies to a chosen prefix:

python3 build.py --install=path/to/prefix

In a CMake consumer, set CMAKE_PREFIX_PATH to that prefix and link the exported target:

find_package(volePSI REQUIRED)
target_link_libraries(myProject PRIVATE visa::volePSI)

Compile options

Pass CMake options to build.py with -D, for example python3 build.py -DVOLE_PSI_ENABLE_BOOST=ON. The build output shows their current values.

Option Purpose
VOLE_PSI_NO_SYSTEM_PATH Search only CMAKE_PREFIX_PATH and managed dependencies, not system install paths.
CMAKE_PREFIX_PATH Search the specified prefix for installed dependencies.
CMAKE_BUILD_TYPE Select Debug, Release, or RelWithDebInfo.
FETCH_AUTO Fetch dependencies that are not found locally.
FETCH_SPARSEHASH, FETCH_LIBOTE, FETCH_LIBDIVIDE Fetch the named dependency.
VOLE_PSI_ENABLE_SSE Enable SSE intrinsics.
VOLE_PSI_ENABLE_PIC Build position-independent code.
VOLE_PSI_ENABLE_ASAN Enable AddressSanitizer.
VOLE_PSI_ENABLE_GMW Compile GMW support for circuit PSI.
VOLE_PSI_ENABLE_CPSI Compile circuit PSI.
VOLE_PSI_ENABLE_OPPRF Compile OPPRF support for circuit PSI.
VOLE_PSI_ENABLE_BOOST Enable Boost networking support.
VOLE_PSI_ENABLE_OPENSSL Enable OpenSSL networking support.
VOLE_PSI_ENABLE_BITPOLYMUL Enable libOTe's binary quasi-cyclic OT support.
VOLE_PSI_ENABLE_SODIUM Use libsodium for elliptic-curve operations.
VOLE_PSI_SODIUM_MONTGOMERY Request libOTe's modified libsodium implementation.
VOLE_PSI_ENABLE_RELIC Use Relic for elliptic-curve operations.

The VOLE_PSI_ENABLE_* and FETCH_* switches take ON or OFF. See build options and python3 build.py --help for details.

About

No description, website, or topics provided.

Resources

Stars

16 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages