#cryptography #big-integer #gmp #num-bigint

rust-bigint

Common traits and methods for multiple BigInt implementations

2 stable releases

1.2.0 Sep 16, 2021
1.1.0 Sep 21, 2020

#891 in Algorithms

Download history 2070/week @ 2024-11-30 2016/week @ 2024-12-07 2274/week @ 2024-12-14 978/week @ 2024-12-21 1230/week @ 2024-12-28 906/week @ 2025-01-04 2442/week @ 2025-01-11 3151/week @ 2025-01-18 1511/week @ 2025-01-25 1997/week @ 2025-02-01 3050/week @ 2025-02-08 624/week @ 2025-02-15 216/week @ 2025-02-22 457/week @ 2025-03-01 316/week @ 2025-03-08 421/week @ 2025-03-15

1,509 downloads per month
Used in 9 crates (5 directly)

MIT license

32KB
779 lines

rust-bigint

Provides traits for common functionality across several Rust BigInt implementations

Example interaction:

// import BigInt from this library. use a feature flag to select the BigInt you need
// also, pull one or more traits from this library into scope
use rust_bigint::BigInt;
use rust_bigint::traits::Converter;
 
let number = BigInt::from(42);
// now use one of the methods exposed by the converter trait
let hex_str = number.to_hex();

See the traits for more examples.


lib.rs:

Provides traits for common functionality across several Rust BigInt implementations

Example interaction:

// import BigInt from this library. use a feature flag to select the BigInt you need
// also, pull one or more traits from this library into scope
use rust_bigint::BigInt;
use rust_bigint::traits::Converter;

let number = BigInt::from(42);
// now use one of the methods exposed by the converter trait
let hex_str = number.to_hex();

See the traits for more examples.

Dependencies

~0.4–1.3MB
~28K SLoC