https://bugs.winehq.org/show_bug.cgi?id=52457
Bug ID: 52457 Summary: CNG Encryption Failure (BCryptEncrypt) Product: Wine Version: 7.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: bcrypt Assignee: wine-bugs@winehq.org Reporter: x256@ultra.fyi Distribution: ---
Created attachment 71746 --> https://bugs.winehq.org/attachment.cgi?id=71746 Demo application (with source code)
The CNG encryption function BCryptEncrypt does not always work properly.
Please see the attached demo application. It encrypts 4 blocks (AES in CBC mode, test vector from RFC 3602): one BCryptEncrypt call encrypts the first two blocks, and a second BCryptEncrypt call encrypts the last two blocks. On Windows, all 4 blocks are encrypted correctly. On Wine, the first two blocks are encrypted correctly, but the last two blocks are incorrect.
Tested with Wine 5.0.3 and 7.0.0 (winehq-stable) on Kubuntu 21.10 (64-bit).
Thanks!
https://bugs.winehq.org/show_bug.cgi?id=52457
--- Comment #1 from Hans Leidekker hans@meelstraat.net --- Created attachment 73001 --> https://bugs.winehq.org/attachment.cgi?id=73001 patch
This patch should help.
https://bugs.winehq.org/show_bug.cgi?id=52457
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |745df5915cf4c7411d69b4fd2ba | |5d05a333f3947 Resolution|--- |FIXED
--- Comment #2 from Hans Leidekker hans@meelstraat.net --- Fixed with 745df5915cf4c7411d69b4fd2ba5d05a333f3947. Thanks for the report!
https://bugs.winehq.org/show_bug.cgi?id=52457
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.17.
https://bugs.winehq.org/show_bug.cgi?id=52457
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |7.0.x
https://bugs.winehq.org/show_bug.cgi?id=52457
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|7.0.x |---
--- Comment #4 from Michael Stefaniuc mstefani@winehq.org --- Removing the 7.0.x milestone from bug fixes included in 7.0.2.