#arbitrary #crypto #bignum #integer #precision

no-std crypto-bigint

Pure Rust implementation of a big integer library which has been designed from the ground-up for use in cryptographic applications. Provides constant-time, no_std-friendly implementations of modern formulas using const generics.

6 releases

new 0.2.10 Sep 21, 2021
0.2.9 Sep 17, 2021
0.2.4 Aug 23, 2021
0.2.2 Jun 27, 2021
0.0.0 Apr 30, 2021

#31 in Math

Download history 2932/week @ 2021-06-07 4699/week @ 2021-06-14 6052/week @ 2021-06-21 4749/week @ 2021-06-28 4799/week @ 2021-07-05 5296/week @ 2021-07-12 7581/week @ 2021-07-19 6762/week @ 2021-07-26 7856/week @ 2021-08-02 11522/week @ 2021-08-09 16407/week @ 2021-08-16 17866/week @ 2021-08-23 19755/week @ 2021-08-30 19371/week @ 2021-09-06 26263/week @ 2021-09-13 25905/week @ 2021-09-20

52,888 downloads per month
Used in 144 crates (3 directly)

Apache-2.0 OR MIT

135KB
3.5K SLoC

RustCrypto: Cryptographic Big Integers

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

Pure Rust implementation of a big integer library which has been designed from the ground-up for use in cryptographic applications.

Provides constant-time, no_std-friendly implementations of modern formulas using const generics.

Documentation

Goals

  • No heap allocations. no_std-friendly.
  • Constant-time by default. Variable-time functions are explicitly marked as such.
  • Leverage what is possible today with const generics on stable rust.
  • Support const fn as much as possible, including decoding big integers from bytes/hex and performing arithmetic operations on them, with the goal of being able to compute values at compile-time.

Minimum Supported Rust Version

Rust 1.51 at a minimum.

License

Licensed under either of:

at your option.

Contribution

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

Dependencies

~120KB