Giter Site home page Giter Site logo

pre-library's Introduction

PRE-Library

The modified version of the JHU-MIT Proxy Recryptography Library (https://isi.jhu.edu/~mgreen/prl/index.html).

The JHU-MIT is a very famous implementation of Proxy Re-encryption (PRE) Library, the core of which is a C++ implementation of the proxy re-encryption schemes proposed by Giuseppe Ateniese, Kevin Fu, Matthew Green and Susan Hohenberger in NDSS 2005. But due to ages, too many errors will appear compiling it today. This is a small modified version to be successfully compiled. Thanks to the contribution of original authors.

This PRE-Library is distributed in source-code form, and is targeted for Linux platform.

Requirements:

  1. Obtain the MIRACL library miracl3.zip from http://www3.cs.stonybrook.edu/~algorith/implement/shamus/distrib/ . Unzip and build the library archive file using the following commands:

--> mkdir miracl/ --> mv miracl3.zip miracl/ --> cd miracl/ --> unzip -j -aa -L miracl3.zip miracl/ --> bash linux64 % For 64bits system

Then, miracl.a will be generated in miracl/. Some examples were also compiled and you can run them to verify the miracl.a, e.g. hail, pk_demo. Note that It must be miracl3, not the latest version!

  1. Download and save the master file PRE-Library-master.zip in the same base directory in which you created the miracl/ directory (parallel to miracl/). Next, decompress and build the library via the following commands: --> unzip PRE-Library-master.zip % decompress to PRE-Library-master/, change the direcory name as you like --> cd PRE-Library-master/src/ --> make clean --> make all % Re-build the miracl.a, proxylib.a and proxylib_test. Run ./proxylib_test to verify. Good luck!

pre-library's People

Contributors

jiangtaoluo avatar

Stargazers

 avatar Htet Htet Hlaing avatar

Watchers

James Cloos avatar  avatar

pre-library's Issues

10. Serialization/deserialization tests ... FAILED

Thanks for your share.
But it failes at test 10 when run proxylib_test . Have you ever meet this problem ?

$ ./proxylib_test 
Proxy Re-encryption Library
Diagnostic Test Routines

1. Initializing library ... OK

TESTING PRE1 ROUTINES

2. Generating curve parameters ... OK
3. Generating keypair 1 ... OK
4. Generating keypair 2 ... OK
5. Re-encryption key generation test  ... OK
6. First-level encryption/decryption test  ... OK
7. Second-level encryption/decryption test  ... OK
8. Re-encryption/decryption test  ... OK
9. Proxy non-invisibility test  ... OK
10. Serialization/deserialization tests ... FAILED

TESTING PRE2 ROUTINES

11. Generating curve parameters ... OK
12. Generating keypair 1 ... OK
13. Generating keypair 2 ... OK
14. Re-encryption key generation test  ... OK
15. First-level encryption/decryption test  ... OK
16. Second-level encryption/decryption test  ... OK
17. Re-encryption/decryption test  ... OK
18. Proxy invisibility test  ... OK
19. Serialization/deserialization tests ... OK

All tests complete.
18 succeeded out of 19 total.

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.