Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verify_signature: Invalid Public key should not be mapped as InvalidSignature #59

Open
stevefan1999-personal opened this issue Mar 30, 2024 · 1 comment

Comments

@stevefan1999-personal
Copy link
Contributor

let public_key = RsaPublicKey::from_pkcs1_der(public_key).map_err(|_| InvalidSignature)?;

@stevefan1999-personal
Copy link
Contributor Author

Same goes for

<$verifying_key>::new(public_key)
.verify(message, &signature)
.map_err(|_| InvalidSignature)

But on a different context. I'm too lazy to find the correct error type though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant