https://bugs.winehq.org/show_bug.cgi?id=23208
--- Comment #35 from Bruno Jesus 00cpxxx@gmail.com --- Ok, I just found the issue. There is a mysterious comment in the code that is now solved, it's about resetting the salt length [1].
Actually the salt len is not supposed to be reset in the BASE or STRONG providers, but due to a broken test [2] (introduced by [3]) that was used to catch a true result as false the bug was not found until now.
The problem that allowed [3] to get commited is that the default provider changed after NT, so one could thought that the older OS versions were broken.
[1] https://source.winehq.org/source/dlls/rsaenh/rsaenh.c#3477 [2] https://source.winehq.org/source/dlls/rsaenh/tests/rsaenh.c#1729 [3] http://source.winehq.org/git/wine.git/commitdiff/54958a21
I'll send a patch soon.