http://bugs.winehq.org/show_bug.cgi?id=60140 --- Comment #3 from Hans Leidekker <hans@meelstraat.net> --- (In reply to Kedar Hirve [MSFT] from comment #0)
Signing data using BCryptSignHash with an RSA 512-bit key and BCRYPT_PAD_PSS successfully produces a signature, but using the same key pair to validate the signature fails with STATUS_INVALID_SIGNATURE.
There are a few problems with this:
1. The same BCryptSignHash with RSA 512 key and PSS padding on Win10 or Win11 fails with STATUS_INVALID_PARAMETER. That's a behavior difference with Windows.
2. Of course, the signature validation failure is an error too.
I'm attaching a minimal repro that demonstrates the problem.
On current Wine BCryptSignHash with a RSA 512-bit key fails just like on Windows 10 (the error code is different though). If I change the key size to 768 your test program succeeds on both Windows and Wine. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.