diff --git a/pkcs1/src/traits.rs b/pkcs1/src/traits.rs index 1def64968..f8934ddd1 100644 --- a/pkcs1/src/traits.rs +++ b/pkcs1/src/traits.rs @@ -169,9 +169,9 @@ where } #[cfg(feature = "pkcs8")] -impl DecodeRsaPublicKey for T +impl DecodeRsaPublicKey for T where - T: for<'a> TryFrom, Error = pkcs8::Error>, + T: for<'a> TryFrom, Error = pkcs8::spki::Error>, { fn from_pkcs1_der(public_key: &[u8]) -> Result { Ok(Self::try_from(pkcs8::SubjectPublicKeyInfoRef {