Remove dependency on regular num-bigint
This commit is contained in:
Generated
-2
@@ -424,7 +424,6 @@ dependencies = [
|
||||
"autocfg 1.0.0",
|
||||
"num-integer",
|
||||
"num-traits",
|
||||
"rand 0.5.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -1063,7 +1062,6 @@ dependencies = [
|
||||
"lazy_static",
|
||||
"log",
|
||||
"nom",
|
||||
"num-bigint",
|
||||
"num-bigint-dig",
|
||||
"num-integer",
|
||||
"num-traits",
|
||||
|
||||
+1
-2
@@ -31,8 +31,7 @@ getrandom = "0.1"
|
||||
hmac = "0.7"
|
||||
log = "0.4"
|
||||
nom = "5"
|
||||
num-bigint_rsa = { version = "0.6", features = ["rand"], package = "num-bigint-dig" }
|
||||
num-bigint = { version = "0.2", features = ["rand"] }
|
||||
num-bigint = { version = "0.6", features = ["rand"], package = "num-bigint-dig" }
|
||||
num-traits = "0.2"
|
||||
num-integer = "0.1"
|
||||
pbkdf2 = "0.3"
|
||||
|
||||
+2
-1
@@ -476,7 +476,8 @@ impl Certificate {
|
||||
_ => return Err(Error::InvalidObject),
|
||||
};
|
||||
|
||||
let serial = parsed_cert.tbs_certificate.serial.into();
|
||||
let serial = Serial::try_from(parsed_cert.tbs_certificate.serial.to_bytes_be().as_slice())
|
||||
.map_err(|_| Error::InvalidObject)?;
|
||||
let issuer = parsed_cert.tbs_certificate.issuer.to_string();
|
||||
let subject = parsed_cert.tbs_certificate.subject.to_string();
|
||||
let subject_pki = PublicKeyInfo::parse(&parsed_cert.tbs_certificate.subject_pki)?;
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ use crate::{
|
||||
use elliptic_curve::weierstrass::PublicKey as EcPublicKey;
|
||||
use log::{error, warn};
|
||||
#[cfg(feature = "untested")]
|
||||
use num_bigint_rsa::traits::ModInverse;
|
||||
use num_bigint::traits::ModInverse;
|
||||
#[cfg(feature = "untested")]
|
||||
use num_integer::Integer;
|
||||
#[cfg(feature = "untested")]
|
||||
|
||||
Reference in New Issue
Block a user