https://bugs.winehq.org/show_bug.cgi?id=39681
Bug ID: 39681 Summary: Unimplemented function crypt32.dll.CryptMsgVerifyCountersignatureEncoded Product: Wine Version: 1.7.53 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: crypt32 Assignee: wine-bugs@winehq.org Reporter: htl10@users.sourceforge.net Distribution: ---
MS dotnet's SignedCms.CheckSignature() depends on crypt32.dll.CryptMsgVerifyCountersignatureEncoded .
I found this out while running a test program which does exactly that:
Unhandled Exception: System.Runtime.InteropServices.SEHException: External component has thrown an exception. at System.Security.Cryptography.CAPISafe.CryptMsgVerifyCountersignatureEncoded(IntPtr hCryptProv, UInt32 dwEncodingType, IntPtr pbSignerInfo, UInt32 cbSignerInfo, IntPtr pbSignerInfoCountersignature, UInt32 cbSignerInfoCountersignature, IntPtr pciCountersigner) at System.Security.Cryptography.Pkcs.SignerInfo.Verify(X509Certificate2Collection extraStore, X509Certificate2 certificate, Boolean verifySig natureOnly) at System.Security.Cryptography.Pkcs.SignerInfo.CheckSignature(X509Certificate2Collection extraStore, Boolean verifySignatureOnly) at System.Security.Cryptography.Pkcs.SignedCms.CheckSignatures(SignerInfoCollection signers, X509Certificate2Collection extraStore, Boolean v erifySignatureOnly) at System.Security.Cryptography.Pkcs.SignedCms.CheckSignatures(SignerInfoCollection signers, X509Certificate2Collection extraStore, Boolean v erifySignatureOnly) at System.Security.Cryptography.Pkcs.SignedCms.CheckSignature(X509Certificate2Collection extraStore, Boolean verifySignatureOnly) at System.Security.Cryptography.Pkcs.SignedCms.CheckSignature(Boolean verifySignatureOnly) ... wine: Unimplemented function crypt32.dll.CryptMsgVerifyCountersignatureEncoded called at address 0x7b83e9b0 (thread 0009), starting debugger... Unhandled exception: unimplemented function crypt32.dll.CryptMsgVerifyCountersignatureEncoded called in 32-bit code (0x7b83e9b0).
(Apologies the wine version may not be accurate if this report is version sensitive - I kept a note on this error on Nov 2, but I upgraded wine to 1.7.55 on No 20; so the actual error would have been observed approximately with 1.7.54/1.7.53/1.7.52)