Git Product home page Git Product logo

mobile_psi_cpp's Introduction

C++ Library for Mobile Private Contact Discovery

C++ library implementing several OPRF protocols and using them for Private Set Intersection

Requirements

  • JAVA JNI libaries
  • C++ compiler supporting C++14

Build instructions

git submodule update --init # pull GSL
mkdir build && cd build
cmake ..
make -j

Test programs

In the droidCrypto/tests directory, some basic tests and example programs can be found.

e.g., droidCrypto/tests/test_psi_oprf_lowmc runs the Garbled-Circuit based PSI protocol based on LowMC

In terminal 1:

droidCrypto/tests/test_psi_oprf_lowmc 0 20

In terminal 2:

droidCrypto/tests/test_psi_oprf_lowmc 1 10

This performs a set intersection using 2^{20} elements on the server (0) side and 2^{10} elements on the client (1) side. Only the item with index 0 is common for both sets, so the client program should only print "Intersection C0" (errors may occur based on the parameters of the cuckoo filter, but the default parameters should have an error probablity of 2^{-30}).

Disclaimer

This code is provided as a experimental implementation for testing purposes and should not be used in a productive environment. We cannot guarantee security and correctness.

Android Test Application

We provide a small benchmarking application for modern Android phones at mobile_psi_android.

Acknowledgements

This project uses several other projects as building blocks.

  • The OT code is based on the public domain library libOTe by Peter Rindal.
  • Elliptic Curve operations are implemented using MIRACL.
  • Some of the binary circuits are based on ones from ABY.
  • The garbled circuit interface is inspired by FlexSC.
  • The used cuckoo filter implementation is cuckoofilter.
  • The implementation of LowMC is based on Picnic.

References

mobile_psi_cpp's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.