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

Can I signatureVerifier RSA OAEP ? #25

Open
thanhhoai162963 opened this issue Mar 13, 2024 · 1 comment
Open

Can I signatureVerifier RSA OAEP ? #25

thanhhoai162963 opened this issue Mar 13, 2024 · 1 comment

Comments

@thanhhoai162963
Copy link

Can I signatureVerifier the same as ECDSA for RSA OAEP ?
Example:
val verificationResult: Boolean =
keyPair.publicKey.signatureVerifier(digest = SHA512).verifySignature("text1".encodeToByteArray(), signature)

@whyoleg
Copy link
Owner

whyoleg commented Mar 14, 2024

Hey, ECDSA provides signatureVerifier, so yes, API is similar to what RSA PSS has (RSA OAEP is for encryption, not signature verification)
Which specific issue do you have, or what do you want to do in the end?

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

2 participants