Bump p256 to v0.5; p384 to v0.4; MSRV 1.44+

This commit is contained in:
Tony Arcieri
2020-10-17 13:32:05 -07:00
parent 08220032db
commit cbe60413cb
6 changed files with 80 additions and 19 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ use crate::{
policy::{PinPolicy, TouchPolicy},
Buffer,
};
use elliptic_curve::weierstrass::PublicKey as EcPublicKey;
use elliptic_curve::sec1::EncodedPoint as EcPublicKey;
use log::{error, warn};
#[cfg(feature = "untested")]
use num_bigint::traits::ModInverse;
@@ -658,7 +658,7 @@ pub fn generate(
} else {
EcPublicKey::from_bytes(point).map(PublicKeyInfo::EcP384)
}
.ok_or(Error::InvalidObject)
.map_err(|_| Error::InvalidObject)
}
}
}