whyoleg / cryptography-kotlin

Kotlin Multiplatform cryptography / crypto library
https://whyoleg.github.io/cryptography-kotlin/
Apache License 2.0
343 stars 20 forks source link

Can I signatureVerifier RSA OAEP ? #25

Closed thanhhoai162963 closed 1 month ago

thanhhoai162963 commented 8 months ago

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

whyoleg commented 8 months ago

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?