Skip to content

Commit 66c355e

Browse files
committed
ecdsa: pkcs8 API changes
see RustCrypto/formats#1483
1 parent 132b046 commit 66c355e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ecdsa/src/signing.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ where
545545
}
546546

547547
#[cfg(feature = "pkcs8")]
548-
impl<C> TryFrom<pkcs8::PrivateKeyInfo<'_>> for SigningKey<C>
548+
impl<C> TryFrom<pkcs8::PrivateKeyInfoRef<'_>> for SigningKey<C>
549549
where
550550
C: EcdsaCurve + AssociatedOid + CurveArithmetic,
551551
AffinePoint<C>: FromEncodedPoint<C> + ToEncodedPoint<C>,
@@ -555,7 +555,7 @@ where
555555
{
556556
type Error = pkcs8::Error;
557557

558-
fn try_from(private_key_info: pkcs8::PrivateKeyInfo<'_>) -> pkcs8::Result<Self> {
558+
fn try_from(private_key_info: pkcs8::PrivateKeyInfoRef<'_>) -> pkcs8::Result<Self> {
559559
SecretKey::try_from(private_key_info).map(Into::into)
560560
}
561561
}

0 commit comments

Comments
 (0)