Code Monkey home page Code Monkey logo

ibe's People

Contributors

bwesterb avatar leonbotros avatar wassasin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

ibe's Issues

IBKEM trait flexibility

Currently the IBKEM trait is not very flexible. Some constructions require a public key in the decapsulation function (for example the FO variants). Right now, we pass an Option<&Self::Pk> to the decapsulation function, which panics at runtime when no public key is given, but ideally this would be a compile-time error.

Implement Zeroize for secret types

  • implement/derive zeroize for (copies of) user secret keys,
  • implement/derive zeroize for (copies of) master secret keys,
  • implement/derive zeroize for (copies of) shared secrets.
  • also add the trait bounds to the KEM/IBE traits.

Introduce "alloc" feature

Currently, this library uses the alloc feature of BLS12-381 (which is enabled by default) for some optimizations. I think we should introduce this as a default, but we should always have an option to not use allocation. This is useful when you compile this lib for an embedded target (i.e., a hardware module performing extraction).

Currently, the following allocating optimizations are used:

  • some decryption algorithms perform the multi_miller_loop to compute multiple pairings.
  • some setup/keygen algorithms use w-NAF precomputations.

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.