Skip to content
New issue

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

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

Already on GitHub? # 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.

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

No branches or pull requests

1 participant