https://bugs.winehq.org/show_bug.cgi?id=53968
--- Comment #1 from Hans Leidekker hans@meelstraat.net --- Created attachment 73558 --> https://bugs.winehq.org/attachment.cgi?id=73558 patch
Here's a patch that implements it on top of BCryptSignHash(). It's not sufficient for your test app because it passes the BCRYPT_PAD_PSS flag, which is unimplemented.