Skip to content

Android Benchmarking Application for Mobile Private Contact Discovery

License

Notifications You must be signed in to change notification settings

contact-discovery/mobile_psi_android

Repository files navigation

Android Benchmarking Application for Mobile Private Contact Discovery

A small Android benchmarking application using the C++ library for Mobile Private Contact Discovery.

Requirements

  • Phone with arm64-v8a ABI
  • C++ compiler supporting C++14
  • Android NDK 19.0+
  • Android SDK 28+

Build instructions

git submodule update --init --recursive

Open gradle project in Android Studio, build and deploy.

Test programs

The application implements a client for the three different OPRF based PSI protocols. The interface allows you to input an ip address, port and number of items.

The corresponding server applications can be found in the droidCrypto/test folder of the C++ library.

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 app:

  • Enter IP address of server
  • Enter port of application (default is 8000)
  • Enter number of client items as 1024

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}).

References

About

Android Benchmarking Application for Mobile Private Contact Discovery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages