Code Monkey home page Code Monkey logo

crypto-primes's Introduction

Prime number tools for crypto-bigint

crate Docs License Build Status Coverage

This library implements prime number generation and primality checking for crypto-bigint integers. In particular:

  • Generating random primes and safe primes of given bit size;
  • Sieving iterator;
  • Miller-Rabin test;
  • Strong and extra strong Lucas tests, and Lucas-V test.

See the documentation for the specific tests for more information and references.

crypto-primes's People

Contributors

fjarri avatar xuganyu96 avatar

crypto-primes's Issues

Use trait to generalize over Uint and BoxedUint

Per this draft PR, to migrate crypto-primes to accommodate both Uint and BxoedUint, a new trait UintLike will be defined in the crypto-bigint crate, and the functions in crypto-primes will take T: UintLike where it used to take Uint<const L: usize>. There are two major items:

  • Define the UintLike trait to be used in crypto-primes
  • Implement UintLike for crypto-bigint

In fact I think we can entirely do the trait definition and implementation in crypto-primes first, prove that it works, then move these traits to crypto-bigint.

Maybe the original maintainers are already working on this, but it still seems like a very fun project, so I want to give it a try, as well.

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.