Verify signature using RSASSA-PSS padding in OpenSSL 3
amartin at xtec.com
amartin at xtec.com
Sun Jan 1 22:16:34 UTC 2023
Hi,
How I can do an RSA_verify_PKCS1_PSS() in OpenSSl 3?
In OpenSSL 1.0.2 I used:
unsigned char * decrypted_sign = (unsigned char
*)OPENSSL_malloc((int)signature.length());
ret = RSA_public_decrypt((int)signature.length(), (unsigned char
*)signature.c_str(), decrypted_sign, rsa, RSA_NO_PADDING);
ret = RSA_verify_PKCS1_PSS(rsa, (unsigned char *)strPaddedMsg.c_str(),
EVP_sha256(), decrypted_sign, -2);
Thanks,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20230101/521b63e9/attachment.htm>
More information about the openssl-users
mailing list