Giter Site home page Giter Site logo

yamanalab / fhe_scheduling_problems Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 0.0 41 KB

Implementations of the solvers of *bootstrap problem* and *relinearize problem* of fully homomorphic encryption.

License: Apache License 2.0

C++ 96.10% Makefile 3.90%
fully-homomorphic-encryption scheduling-problem

fhe_scheduling_problems's Introduction

Solver of FHE Scheduling Problems

Implementations of the solvers of bootstrap problem and relinearize problem of fully homomorphic encryption.

Implementations of:

  • bootstrap problem solver with MILP [1]
  • relinearize problem solver with MILP [2]
  • approximated relinearize problem solver with min-cut [3]
  • Reducing the circuit size for solving bootstrap/relinearize problem faster [4]

The acceptable format of a circuit file is the same as the format used in Circuits of Basic Functions Suitable For MPC and FHE published by Nigel Smart.

Requirements

  • gcc 5.5 (with C++14)
  • GNU make
  • Gurobi Optimizer v8.0.1
  • A valid license of Gurobi Optimizer

Build examples

You can build examples by a make command.

$ cd src
$ make

and then, built binaries will be under the src directory.

Run examples

These are the runnable binary produced by the build.

  • relinCompObj.out: compares the objective values obtained by a method [2] and [3].
  • relinCompTime.out: compares the elapsed time obtained by a method [2] and [3].
  • reduceBoot.out: solve bootstrap problem obtained by a method [1] and [4]
  • reduceRelin.out: solve relinearize problem obtained by a collaboration of method [2] and [4]

For example, relinCompObj.out is a simple task that receives a circuit file as an input and compares the objective values obtained by a method [2] and [3]. You can use sample-circuit.txt as a sample of a circuit file.

./relinCompObj.out [circuit-file-name]

By default, the parameters kr and km are set as the embedded values in the source code. But when you specify them by command-line arguments, these values are used.

./relinCompObj.out [circuit-file-name] -r [kr] -m [km]

To see more details about each example and its options, execute each binary with option -h.

References

  • [1] Marie Paindavoine and Bastien Vialla. Minimizing the Number of Bootstrappings in Fully Homomorphic Encryption. In International Conference on Selected Areas in Cryptography, Vol. 9566, LNCS. 25–43. 2015.
  • [2] Hao Chen. "Optimizing relinearization in circuits for homomorphic encryption," arXiv e-prints. arXiv:cs.DS/1711.06319. 2017.
  • [3] Hiroki Sato. "A Study on Relinearize Problem in Fully Homomorphic Encryption," M.E. thesis, Waseda Univ., 2019.
  • [4] Hiroki Sato, Yu Ishimaki and Hayato Yamana. "完全準同型暗号における bootstrap problem 及び relinearize problem の厳密解法の高速化," DBSJ Japanese Journal, Vol. 18-J, Article No.17. 2020.

License

Copyright 2018-2021 Yamana Laboratory, Waseda University
Supported by JST CREST Grant Number JPMJCR1503, Japan.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE‐2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

fhe_scheduling_problems's People

Contributors

musaprg avatar tossy310 avatar

Stargazers

 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.