update names
This commit is contained in:
parent
ca79006169
commit
fb29d3cd80
@ -1,7 +1,7 @@
|
||||
#![feature(test)]
|
||||
#![cfg(feature = "rand")]
|
||||
|
||||
extern crate num_bigint;
|
||||
extern crate num_bigint_dig as num_bigint;
|
||||
extern crate num_integer;
|
||||
extern crate num_traits;
|
||||
extern crate rand;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#![feature(test)]
|
||||
|
||||
extern crate num_bigint;
|
||||
extern crate num_bigint_dig as num_bigint;
|
||||
extern crate num_traits;
|
||||
extern crate test;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#![feature(test)]
|
||||
#![cfg(feature = "rand")]
|
||||
|
||||
extern crate num_bigint;
|
||||
extern crate num_bigint_dig as num_bigint;
|
||||
extern crate num_integer;
|
||||
extern crate num_traits;
|
||||
extern crate rand;
|
||||
|
@ -38,7 +38,7 @@
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
extern crate num_bigint;
|
||||
extern crate num_bigint_dig as num_bigint;
|
||||
extern crate num_integer;
|
||||
extern crate num_traits;
|
||||
|
||||
|
@ -44,7 +44,7 @@ use ParseBigIntError;
|
||||
/// A big unsigned integer type.
|
||||
#[derive(Clone, Debug, Hash)]
|
||||
pub struct BigUint {
|
||||
data: Vec<BigDigit>,
|
||||
pub data: Vec<BigDigit>,
|
||||
}
|
||||
|
||||
impl PartialEq for BigUint {
|
||||
|
@ -1,4 +1,4 @@
|
||||
extern crate num_bigint;
|
||||
extern crate num_bigint_dig as num_bigint;
|
||||
extern crate num_integer;
|
||||
extern crate num_traits;
|
||||
#[cfg(feature = "rand")]
|
||||
|
@ -1,4 +1,4 @@
|
||||
extern crate num_bigint;
|
||||
extern crate num_bigint_dig as num_bigint;
|
||||
extern crate num_traits;
|
||||
|
||||
use num_bigint::{BigInt, Sign, ToBigInt};
|
||||
|
@ -1,4 +1,4 @@
|
||||
extern crate num_bigint;
|
||||
extern crate num_bigint_dig as num_bigint;
|
||||
extern crate num_traits;
|
||||
|
||||
use num_bigint::BigInt;
|
||||
|
@ -1,4 +1,4 @@
|
||||
extern crate num_bigint;
|
||||
extern crate num_bigint_dig as num_bigint;
|
||||
extern crate num_integer;
|
||||
extern crate num_traits;
|
||||
|
||||
@ -1710,3 +1710,28 @@ fn test_pow() {
|
||||
#[cfg(has_i128)]
|
||||
check!(u128);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn dummy() {
|
||||
let n = BigUint {
|
||||
data: vec![2091882447511797859u64, 13026742510440650545u64],
|
||||
};
|
||||
let e = BigUint {
|
||||
data: vec![65537u64],
|
||||
};
|
||||
let d = BigUint {
|
||||
data: vec![3067126905460138833u64, 4701489854577608180u64],
|
||||
};
|
||||
let p1 = BigUint {
|
||||
data: vec![13836070790002140521u64],
|
||||
};
|
||||
let p2 = BigUint {
|
||||
data: vec![17367718686279877099u64],
|
||||
};
|
||||
|
||||
println!("n: {:?}", n.to_bytes_le());
|
||||
println!("e: {:?}", e.to_bytes_le());
|
||||
println!("d: {:?}", d.to_bytes_le());
|
||||
println!("p1: {:?} {:?}", p1, p1.to_bytes_le());
|
||||
println!("p2: {:?} {:?}", p2, p2.to_bytes_le());
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
extern crate num_bigint;
|
||||
extern crate num_bigint_dig as num_bigint;
|
||||
extern crate num_traits;
|
||||
|
||||
use num_bigint::BigUint;
|
||||
|
@ -1,4 +1,4 @@
|
||||
extern crate num_bigint;
|
||||
extern crate num_bigint_dig as num_bigint;
|
||||
extern crate num_integer;
|
||||
extern crate num_traits;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#![cfg(feature = "rand")]
|
||||
|
||||
extern crate num_bigint;
|
||||
extern crate num_bigint_dig as num_bigint;
|
||||
extern crate num_traits;
|
||||
extern crate rand;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
extern crate num_bigint;
|
||||
extern crate num_bigint_dig as num_bigint;
|
||||
extern crate num_integer;
|
||||
extern crate num_traits;
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#![cfg(feature = "serde")]
|
||||
|
||||
extern crate num_bigint;
|
||||
extern crate num_bigint_dig as num_bigint;
|
||||
extern crate num_traits;
|
||||
extern crate serde_test;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#![cfg(feature = "rand")]
|
||||
|
||||
extern crate num_bigint;
|
||||
extern crate num_bigint_dig as num_bigint;
|
||||
extern crate num_traits;
|
||||
extern crate rand;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user