[Bug 52457] New: CNG Encryption Failure (BCryptEncrypt)

WineHQ Bugzilla wine-bugs at winehq.org
Wed Jan 26 05:46:53 CST 2022


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 at winehq.org
          Reporter: x256 at 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!

-- 
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.



More information about the wine-bugs mailing list