[xmlsec] Using xmlsec-examples (Win32 applications, based on sign1..c, sign2.c and encrypt1.c etc)

Maxim Kozlov yossarian22 at yandex.ru
Wed May 2 06:49:10 PDT 2007


I check: key name in both places are the same. 
But when i am calling function 

 /* encrypt the data */
xmlSecEncCtxXmlEncrypt(encCtx, encDataNode, xmlDocGetRootElement(doc))

i get folloing errors(same with post on http://www.aleksey.com/pipermail/xmlsec/2007/003783.html):
...\Visual Studio 2005\Projects\Enc1\debug>Enc3.exe encrypt3-doc.xml rsakey.pem
func=:file=..\src\transforms.c:line=1072:obj=unknown:subj=dataSize > 0:error=100:assertion:
func=:file=..\src\xmlenc.c:line=669:obj=unknown:subj=xmlSecTransformCtxBinaryExecute:error=1:xmlsec library function failed:
func=:file=..\src\keys.c:line=1364:obj=unknown:subj=xmlSecKeysMngrFindKey:error=1:xmlsec library function failed:
func=:file=..\src\xmlenc.c:line=885:obj=unknown:subj=unknown:error=45:key is not found:
func=:file=..\src\xmlenc.c:line=375:obj=unknown:subj=xmlSecEncCtxEncDataNodeRead:error=1:xmlsec library function failed:
Error: encryption failed

I made screenshot of debug window in this breakepoint(before this function call)- http://nevlabs.ru/sanch/ne_trogat/debug1.jpg

- 

Best regards,
Maxim. 


More information about the xmlsec mailing list