Лог, машина win 7 x64
'test.exe': Loaded 'C:\Work\...\.build\Debug-Win32\test.exe', Symbols loaded.
'test.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\user32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll'
'test.exe': Unloaded 'C:\Windows\SysWOW64\apphelp.dll'
'test.exe': Loaded 'C:\Work\...\.build\Debug-Win32\BftCryptoApiAdapter32.dll', Symbols loaded.
'test.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll'
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\cpcrypt.dll'
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\detoured.dll'
'test.exe': Loaded 'C:\Work\...\.build\Debug-Win32\cades.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\cryptnet.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\Wldap32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv'
'test.exe': Loaded 'C:\Windows\SysWOW64\cryptui.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\oleacc.dll'
.\Externs.cpp(33) : /Init/
.\CPSettings.cpp(193) : /Init/
'test.exe': Loaded 'C:\Windows\SysWOW64\riched20.dll'
cades.dll: {1216} /CCadesApp::InitInstance/ CadesApp.cpp(16) : hInstance=6E000000
SXS: BasepCreateActCtx() BasepSxsCreateStreams() failed
First-chance exception at 0x7560b9bc in test.exe: Microsoft C++ exception: Exception at memory location 0x0018f69c..
cades.dll: {1216} /CadesSignMessage/ cades.cpp(2071) : (pSignPara=0x0018F858, fDetachedSignature=1, cToBeSigned=1, rgpbToBeSigned=0x0018F84C, rgcbToBeSigned=0x0018F94C, ppSignedBlob=0x0018F840)
'test.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\cryptsp.dll'
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\cpadvai.dll'
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\cpcsp.dll', Binary was not built with debug information.
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\cpcspi.dll'
'test.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll'
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\cpsuprt.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\WinSCard.dll'
cpcspi: Thread: file:line function text xcode(dcode) level: 0
cpcsp: Thread: file:line text level: 0
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\cprndm.dll'
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\bio.dll'
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\cpui.dll'
cpui: Thread: file:line function text xcode(dcode) level: 0
'test.exe': Loaded 'C:\Windows\SysWOW64\msi.dll'
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\cprdr.dll'
cprdr: Thread: file:line function text xcode(dcode) level: 0
'test.exe': Loaded 'C:\Windows\SysWOW64\winsta.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\wtsapi32.dll'
First-chance exception at 0x7560b9bc in test.exe: 0x000006BA: Сервер RPC недоступен.
First-chance exception at 0x7560b9bc in test.exe: Microsoft C++ exception: unsigned long at memory location 0x0018e4ac..
First-chance exception at 0x7560b9bc in test.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7560b9bc in test.exe: 0x0000071A: Удаленный вызов процедуры был отменен.
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\fat12.dll'
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\charismathics.dll', Binary was not built with debug information.
'test.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll'
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\etok.dll', Binary was not built with debug information.
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\inpaspot.dll', Binary was not built with debug information.
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\ric.dll'
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\rtSupCP.dll', Binary was not built with debug information.
'test.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll'
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\pcsc.dll'
First-chance exception at 0x7560b9bc in test.exe: 0x000006BA: Сервер RPC недоступен.
First-chance exception at 0x7560b9bc in test.exe: Microsoft C++ exception: unsigned long at memory location 0x0018e248..
First-chance exception at 0x7560b9bc in test.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7560b9bc in test.exe: 0x0000071A: Удаленный вызов процедуры был отменен.
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\reg.dll'
cades.dll: {1216} /CadesSignMessageImpl/ cades.cpp(1953) : Signer updating start
cades.dll: {1216} /CadesSignMessageImpl/ cades.cpp(1956) : Hash algorithm deduced
cades.dll: {1216} /CadesMsgOpenToEncodeImplNamespace::AttributeExists/ cades.cpp(181) : (pAttr=0)
cades.dll: {1216} /CadesMsgOpenToEncodeImplNamespace::UpdateSignedAttributes/ cades.cpp(377) : Signer does not have any of signing-certificate attributes
cades.dll: {1216} /CadesMsgOpenToEncodeImplNamespace::UpdateSignedAttributes/ cades.cpp(383) : Attributes copied
'test.exe': Loaded 'C:\Windows\winsxs\x86_cryptopro.cplib_a6d31b994cfcddc4_1.2.163.0_none_d4f5243a9896b6cb\cplib.dll'
'test.exe': Loaded 'C:\Windows\winsxs\x86_cryptopro.asn1_a6d31b994cfcddc4_1.2.324.0_none_b211eebf3891f6e5\cpasn1.dll'
'test.exe': Loaded 'C:\Windows\winsxs\x86_cryptopro.asn1_a6d31b994cfcddc4_1.2.324.0_none_b211eebf3891f6e5\asn1bercpp.dll'
'test.exe': Loaded 'C:\Windows\winsxs\x86_cryptopro.asn1_a6d31b994cfcddc4_1.2.324.0_none_b211eebf3891f6e5\asn1rtcpp.dll'
'test.exe': Loaded 'C:\Windows\winsxs\x86_cryptopro.asn1_a6d31b994cfcddc4_1.2.324.0_none_b211eebf3891f6e5\asn1.dll'
'test.exe': Loaded 'C:\Windows\winsxs\x86_cryptopro.asn1_a6d31b994cfcddc4_1.2.324.0_none_b211eebf3891f6e5\asn1xercpp.dll'
cades.dll: {1216} /CadesMsgOpenToEncodeImplNamespace::UpdateSignedAttributes/ cades.cpp(386) : signing-certificate(-v2) attribute assembled
cades.dll: {1216} /CadesMsgOpenToEncodeImplNamespace::UpdateSignedAttributes/ cades.cpp(389) : Signer is updated successfully
cades.dll: {1216} /CadesMsgOpenToEncode/ cades.cpp(491) : (dwMsgEncodingType=0x00010001, dwFlags=0x00000004, pvMsgEncodeInfo=0x0018F22C, pszInnerContentObjID=0, pStreamInfo=0x00000000)
cades.dll: {1216} /CadesMsgOpenToEncodeImpl/ cades.cpp(439) : Start
cades.dll: {1216} /CadesMsgOpenToEncodeImpl/ cades.cpp(443) : Input parameters checked
cades.dll: {1216} /CadesMsgOpenToEncodeImpl/ cades.cpp(452) : Copy of input structures is ready
cades.dll: {1216} /CadesMsgOpenToEncodeImpl/ cades.cpp(458) : Signers updating start
cades.dll: {1216} /CadesMsgOpenToEncodeImpl/ cades.cpp(463) : Signer #0
'test.exe': Loaded 'C:\Windows\SysWOW64\ncrypt.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\bcrypt.dll'
'test.exe': Loaded 'C:\Program Files (x86)\Crypto Pro\CSP\cpext.dll'
SXS: BasepCreateActCtx() BasepSxsCreateStreams() failed
cpext: Thread: file:line function text xcode(dcode) level: 0
cades.dll: {1216} /CadesMsgOpenToEncodeImplNamespace::CheckAlgorithms/ cades.cpp(407) : Public key info is exported successfully
cades.dll: {1216} /CadesMsgOpenToEncodeImplNamespace::CheckAlgorithms/ cades.cpp(414) : Signature algoritm OID info is found: 1.2.643.2.2.3
cades.dll: {1216} /CadesMsgOpenToEncodeImpl/ cades.cpp(470) : Certificates equality checked
cades.dll: {1216} /CadesMsgOpenToEncodeImplNamespace::DeduceHashAlgorithm/ cades.cpp(157) : (szHashAlgorithm=1.2.643.2.2.9)
cades.dll: {1216} /CadesMsgOpenToEncodeImpl/ cades.cpp(472) : Hash algorithm deduced
cades.dll: {1216} /CadesMsgOpenToEncodeImplNamespace::AttributeExists/ cades.cpp(176) : (pAttr->pszObjId=1.2.840.113549.1.9.16.2.47)
cades.dll: {1216} /CadesMsgOpenToEncodeImpl/ cades.cpp(479) : Calling CryptMsgOpenToEncode()
'test.exe': Loaded 'C:\Windows\SysWOW64\cpcng.dll'
SXS: BasepCreateActCtx() BasepSxsCreateStreams() failed
cades.dll: {1216} /CadesMsgOpenToEncode/ cades.cpp(522) : (hMsg=0x005FDB00, GetLastError=0x00000000)
cades.dll: {1216} /CadesMsgEnhanceSignature/ cades.cpp(1148) : (hCryptMsg=0x005FE808, dwSignatureIndex=0, pCadesSignPara=0x0018F244)
cades.dll: {1216} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1003) : Input parameters checked
cades.dll: {1216} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1007) : Signer certificate ID found
cades.dll: {1216} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1022) : pSignerCert=0x005E3420
cades.dll: {1216} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1031) : Only CAdES-BES is required.
cades.dll: {1216} /CadesMsgEnhanceSignature/ cades.cpp(1177) : (res=1, GetLastError=0x00000000
cades.dll: {1216} /CadesSignMessage/ cades.cpp(2103) : (res=1, GetLastError=0x00000000
cades.dll: {1216} /CadesFreeBlob/ cades.cpp(2537) : (pBlob=0x003C1498)
cades.dll: {1216} /CadesFreeBlob/ cades.cpp(2565) : (res=1, GetLastError=0x00000000
cades.dll: {1216} /CadesEnhanceMessage/ CadesEnhanceMessage.cpp(90) : (pEnhancePara=0x0018FA40, dwSignerIndex=0, pbSignedBlob=0x01F22914, cbSignedBlob=543, ppEnhancedBlob=0x0018FA34)
cades.dll: {1216} /CadesMsgEnhanceSignature/ cades.cpp(1148) : (hCryptMsg=0x005FE808, dwSignatureIndex=0, pCadesSignPara=0x0018FA54)
cades.dll: {1216} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1003) : Input parameters checked
cades.dll: {1216} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1007) : Signer certificate ID found
cades.dll: {1216} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1022) : pSignerCert=0x00603868
cades.dll: {1216} /CadesMsgGetType/ CadesMsgGetType.cpp(135) : (hCryptMsg=0x005FE808, dwSignatureIndex=0, pdwCadesType=0x0018EEE4)
cades.dll: {1216} /CadesMsgGetType/ CadesMsgGetType.cpp(160) : (res=1, GetLastError=0x00000000
cades.dll: {1216} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1064) : Hash algorithm deduced
cades.dll: {1216} /CadesMsgEnhanceSignatureImplNamespace::ExtractSignature/ cades.cpp(552) : Signature extracted via CMSG_ENCRYPTED_DIGEST
'test.exe': Loaded 'C:\Windows\winsxs\x86_cryptopro.pki.tsp.client_a6d31b994cfcddc4_1.1.418.0_none_fd5399b0894a6ad5\tspcli.dll'
.\Externs.cpp(33) : /Init/
.\CPSettings.cpp(193) : /Init/
'test.exe': Loaded 'C:\Windows\SysWOW64\rsaenh.dll'
First-chance exception at 0x7560b9bc in test.exe: Microsoft C++ exception: ATL::CAtlException at memory location 0x0018e858..
cades.dll: {1216} /CadesMsgEnhanceSignature/ cades.cpp(1158) : CAtlException, m_hr=0x80090019
cades.dll: {1216} /CadesMsgEnhanceSignature/ cades.cpp(1177) : (res=0, GetLastError=0x80090019
cades.dll: {1216} /CadesEnhanceMessageNamespace::Enhance/ CadesEnhanceMessage.cpp(48) : Expression FAILED: ::CadesMsgEnhanceSignature( msg.GetHandle(), dwSignerIndex, pEnhancePara->pCadesSignPara)
cades.dll: {1216} /CadesEnhanceMessageNamespace::Enhance/ CadesEnhanceMessage.cpp(48) : Last win32 error thrown as exception
First-chance exception at 0x7560b9bc in test.exe: Microsoft C++ exception: COleException at memory location 0x0018f57c..
cades.dll: {1216} /CadesEnhanceMessage/ CadesEnhanceMessage.cpp(107) : COleException, m_sc=0x80090019
cades.dll: {1216} /CadesEnhanceMessage/ CadesEnhanceMessage.cpp(116) : (res=0, GetLastError=0x80090019
cades.dll: {1216} /CadesFormatMessage/ cades.cpp(3581) : (dwFlags=2560, lpSource=0x00000000, dwMessageId=-2146893799, dwLanguageId=0, lpBuffer=0x023E5688, nSize=1024, Arguments=0x00000000)
cades.dll: {1216} /CadesFormatMessage/ cades.cpp(3612) : (res=0, GetLastError=0x00000715
First-chance exception at 0x7560b9bc in test.exe: Microsoft C++ exception: Exception at memory location 0x0018f844..