Git Product home page Git Product logo

libprio-cc's Introduction

libprio-cc: A Prio implementation in C++ and its JNI wrapper

This repository contains the cryptographic implementation of Prio in C++, together with a JNI wrapper. It is intended to be interoperable with the libprio-rs client code implementation and the matching Rust server code implementation.

About Prio

Prio is a cryptographic technology that allows clients to submit metrics to servers in a private way, such that the servers only learn aggregated outputs. In more detail, the client will create shares of its metrics, and send one share to each of Server A and Server B. Server A and Server B will locally accumulate such shares from multiple clients, and eventually engage in an interactive cryptographic protocol that will allow Server A to learn the aggregate metric across all clients, but nothing extra.

More details can be found in the full academic paper:

"Prio: Private, Robust, and Scalable Computation of Aggregate Statistics"
by Henry Corrigan-Gibbs and Dan Boneh
USENIX Symposium on Networked Systems Design and Implementation
March 2017

Available online at: https://crypto.stanford.edu/prio/

Building/Running Tests

This repository requires Bazel. You can install Bazel by following the instructions for your platform on the Bazel website.

You must also install Android SDK and NDK, and set the environment variables ANDROID_HOME and ANDROID_NDK_HOME to point to the paths to the Android SDK and NDK respectively. See this website for more details. These are needed in order to support JNI compilation.

Once you have installed Bazel and set the environment variables, you can clone this repository and run all tests that are included by navigating into the root folder and running:

bazel test //...

Building JNI shared object

To build a shared object (.so file) containing the JNI wrapped client code, follow the instructions in prio/jni/README.md. You will find example commands to build .so files for different platforms.

Disclaimer

This is not an officially supported Google product.

libprio-cc's People

Contributors

karnseth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

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.