Giter Site home page Giter Site logo

fhipe's Introduction

An Implementation of Function-Hiding Inner Product Encryption (FHIPE)

This is an implementation of the function-hiding inner product encryption scheme described here: (link to be posted)

This implementation is a research prototype built for micro-benchmarking purposes, and is not intended to be used in production-level code as it has not been carefully analyzed for potential security flaws.

Authors:

  • Kevin Lewi, Stanford University
  • Sam Kim, Stanford University
  • Avradip Mandal, Fujitsu Laboratories of America
  • Hart Montgomery, Fujitsu Laboratories of America
  • Arnab Roy, Fujitsu Laboratories of America
  • David J. Wu, Stanford University

Contact Kevin Lewi for questions about the code: [email protected]

Prerequisites

Make sure you have the following installed:

Installation

git clone --recursive https://github.com/kevinlewi/fhipe.git
cd fhipe
sudo make install (use `make install-mac` if running on MAC OS X)

Running a Test

python3 tests/test_ipe.py

Modules

This library ships with the following modules:

  • Inner Product Encryption: In fhipe/ipe.py, implements function-hiding inner product encryption
  • Two-input Functional Encryption. In fhipe/mife.py, implements secret-key small-domain two-input functional encryption for arbitrary functions

Submodules

We rely on the following two submodules:

  • FLINT for the C backend
  • Charm for the pairings implementation

fhipe's People

Contributors

kevinlewi avatar

Stargazers

 avatar Emery Coxe avatar  avatar mohamad mehdi maheri avatar Joker avatar Dan Draper avatar Luis Belloch avatar  avatar CHAO XU avatar  avatar frankfanslc avatar Guido Falk von Rudorff avatar Liyao Xiong avatar yilin avatar Junwei Wang avatar Dendi Suhubdy avatar Sora Morimoto avatar Brandon Lum avatar Peter Squicciarini avatar  avatar Juri Hahn avatar Bheem avatar Andrew Kane avatar Zowie avatar nino avatar  avatar miguel avatar Ryan James Spencer avatar Xingliang Yuan avatar Justin avatar FengLiu avatar Elliot Cameron avatar chessai avatar David Johnson avatar Petter Aas avatar Samuel Everett avatar sarthak avatar  avatar Bo Zhu avatar

Watchers

David Wu avatar John the Scott avatar  avatar Dongxiang Fang avatar  avatar

fhipe's Issues

Maximum length vector that can be encrypted.

I would like to ask you what is the maximum length of vector that can be calculated. I tried to generate encryption parameters for a vector of length 1000, but it took too long. Is it theoretically possible to generate encryption parameters of this order of magnitude, and in practice?

Failed on negatives

Hello !
I use fhipe to calculate the inner products of vectors, and it works pretty well if the product is positive.
but when the expected inner product is negative, it cann't find the correct result.

Could you give me some threads on using it to calculate the nenative product?
Thank you very much!

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.