http://bugs.winehq.org/show_bug.cgi?id=32758
--- Comment #11 from Hans Leidekker hans@meelstraat.net 2013-01-21 15:15:04 CST --- 003b:Call advapi32.CryptCreateHash(0017e858,0000800c,00000000,00000000,0032e028) ret=0901c934 003b:Call rsaenh.CPCreateHash(00000004,0000800c,00000000,00000000,074a4bf0) ret=7edcdc52 003b:Ret rsaenh.CPCreateHash() retval=00000000 ret=7edcdc52 003b:Ret advapi32.CryptCreateHash() retval=00000000 ret=0901c934 003b:Call KERNEL32.GetLastError() ret=79162510 003b:Ret KERNEL32.GetLastError() retval=80090008 ret=79162510 003b:Call KERNEL32.RaiseException(e0434352,00000001,00000005,0032df6c) ret=791cac08
So CryptCreateHash returns NTE_BAD_ALGID for CALG_SHA_256. According to MSDN it should be supported by the specified provider.