whyoleg / cryptography-kotlin

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

Can I signatureVerifier RSA OAEP ? #25

Open thanhhoai162963 opened 5 months ago

thanhhoai162963 commented 5 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 5 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?