Giter Site home page Giter Site logo

spdz-yao's Introduction

Note: MP-SPDZ includes additional functionality such as private inputs.

This repository contains code to run computation with Yao's garbled circuits optimized for AES-NI by Bellare et al..

Preface:

The main purpose of this software is to provide a quick way to benchmark the computation of some programs written in a subset of the SPDZ high-level language (using purely sint and sfix) with Yao's garbled circuits. Private inputs are not supported.

Requirements:

  • GCC (tested with 7.2) or LLVM (tested with 3.8)
  • MPIR library, compiled with C++ support (use flag --enable-cxx when running configure)
  • libsodium library, tested against 1.0.11
  • CPU supporting AES-NI, PCLMUL and AVX2
  • Python 2.x
  • If using macOS, Sierra or later

Compile the VM:

Run make yao (use the flag -j for faster compilation multiple threads).

Compile the circuit:

Run ./compile.py -D <program> to compile the Programs/Source/<program>.mpc. See gc_tutorial.mpc and gc_fixed_point_tutorial.mpc for examples.

Run the protocol:

  • Run everything locally: ./yao-simulate.x <program>
  • Run on different hosts:
    • Garbler: ./yao-player.x -p 0 <program>
    • Evaluator: ./yao-player.x -p 1 -h <garbler host> <program>

spdz-yao's People

Contributors

avishayyanay avatar lance6716 avatar mkskeller avatar ocalex86 avatar pascholl avatar rdragos avatar risingnote avatar tikrass avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.