Skip to content

Commit 407f89b

Browse files
committed
pkcs1v15: VerifyingKey::from to use prefixed version
As discussed in #341, `pkcs1v15::VerifyingKey::from` should use the prefixed keys.
1 parent e96ed43 commit 407f89b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pkcs1v15/verifying_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ where
173173
D: Digest,
174174
{
175175
fn from(key: RsaPublicKey) -> Self {
176-
Self::new_unprefixed(key)
176+
Self::new(key)
177177
}
178178
}
179179

0 commit comments

Comments
 (0)