[Bug 60140] New: Signature from BCryptSignHash with RSA 512 key and PSS padding cannot be verified
http://bugs.winehq.org/show_bug.cgi?id=60140 Bug ID: 60140 Summary: Signature from BCryptSignHash with RSA 512 key and PSS padding cannot be verified Product: Wine Version: 10.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: bcrypt Assignee: wine-bugs@list.winehq.org Reporter: kedarh@microsoft.com Target Milestone: --- Distribution: --- Created attachment 81739 --> http://bugs.winehq.org/attachment.cgi?id=81739 sample C++ application that signs data and verifies signature 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. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=60140 Ken Sharp <imwellcushtymelike@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source URL| |https://bugs.winehq.org/att | |achment.cgi?id=81739 --- Comment #1 from Ken Sharp <imwellcushtymelike@gmail.com> --- Are you really using Wine 10.0? Please upgrade and try again. https://gitlab.winehq.org/wine/wine/-/wikis/Download -- 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.
http://bugs.winehq.org/show_bug.cgi?id=60140 --- Comment #2 from Kedar Hirve [MSFT] <kedarh@microsoft.com> --- 10.0 is the version that comes when I install "Windows Support for Apps" on Zorin OS from their store. I will try to upgrade and try again. -- 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.
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.
participants (1)
-
WineHQ Bugzilla