Skip to content

Commit

Permalink
pkcs1v15: VerifyingKey::from to use prefixed version
Browse files Browse the repository at this point in the history
As discussed in RustCrypto#341, `pkcs1v15::VerifyingKey::from` should use the
prefixed keys.
  • Loading branch information
baloo committed Feb 5, 2025
1 parent e96ed43 commit 407f89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkcs1v15/verifying_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ where
D: Digest,
{
fn from(key: RsaPublicKey) -> Self {
Self::new_unprefixed(key)
Self::new(key)
}
}

Expand Down

0 comments on commit 407f89b

Please # to comment.