We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 132b046 commit 66c355eCopy full SHA for 66c355e
ecdsa/src/signing.rs
@@ -545,7 +545,7 @@ where
545
}
546
547
#[cfg(feature = "pkcs8")]
548
-impl<C> TryFrom<pkcs8::PrivateKeyInfo<'_>> for SigningKey<C>
+impl<C> TryFrom<pkcs8::PrivateKeyInfoRef<'_>> for SigningKey<C>
549
where
550
C: EcdsaCurve + AssociatedOid + CurveArithmetic,
551
AffinePoint<C>: FromEncodedPoint<C> + ToEncodedPoint<C>,
@@ -555,7 +555,7 @@ where
555
{
556
type Error = pkcs8::Error;
557
558
- fn try_from(private_key_info: pkcs8::PrivateKeyInfo<'_>) -> pkcs8::Result<Self> {
+ fn try_from(private_key_info: pkcs8::PrivateKeyInfoRef<'_>) -> pkcs8::Result<Self> {
559
SecretKey::try_from(private_key_info).map(Into::into)
560
561
0 commit comments