Verify signature using RSASSA-PSS padding in OpenSSL 3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux