Skip to content

Commit b019aa1

Browse files
authored
pkcs1v15: VerifyingKey::from to use prefixed version (#472)
As discussed in #341, `pkcs1v15::VerifyingKey::from` should use the prefixed keys. Just lost a couple hours on this one behavior, and since 0.10 is just around the corner, might as well fix it before that. Fixes #341
1 parent e96ed43 commit b019aa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pkcs1v15/verifying_key.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ where
170170

171171
impl<D> From<RsaPublicKey> for VerifyingKey<D>
172172
where
173-
D: Digest,
173+
D: Digest + AssociatedOid,
174174
{
175175
fn from(key: RsaPublicKey) -> Self {
176-
Self::new_unprefixed(key)
176+
Self::new(key)
177177
}
178178
}
179179

0 commit comments

Comments
 (0)