Git Product home page Git Product logo

elgamal-curve25519's Introduction

elgamal-curve25519

Travis branch Coveralls github branch License Docs.rs

ElGamal homomorphic encryption on Curve25519.

NOTES:

  • The API may change (error management, more options on the homomorphic side, idk).
  • nightly only to ensure some level of constant-time-ness. More info here and here.

Install

To install the library add in your Cargo.toml:

# Cargo.toml

[dependencies]
elgamal-curve25519 = "0.1"

Usage

To use the library just add in the root of your crate:

// root_file_name.rs

extern crate elgamal_curve25519; // old style
// or just use `use`, which can be used in any file of your project
use elgamal_curve25519; // new style

You can read the docs and the tests for more information on how to use it in practice.

License

This project is license under either of

at your option.

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in elgamal-curve25519 by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

elgamal-curve25519's People

Contributors

chritchens avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

elgamal-curve25519's Issues

broken build

error[E0277]: the trait bound `D: std::default::Default` is not satisfied
   --> src/lib.rs:198:40
    |
196 |         where D: Digest<OutputSize = U64>
    |                                          - help: consider further restricting type parameter `D`: `, D: std::default::Default`
197 |     {
198 |         let scalar = Scalar::from_hash(digest).reduce();
    |                                        ^^^^^^ the trait `std::default::Default` is not implemented for `D`
    | 
   ::: /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/curve25519-dalek-1.1.3/src/scalar.rs:602:45
    |
602 |         where D: Digest<OutputSize = U64> + Default
    |                                             ------- required by this bound in `curve25519_dalek::scalar::Scalar::from_hash`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: could not compile `elgamal-curve25519`.

To learn more, run the command again with --verbose.


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.