[xmlsec] encrypt2 - error=45:key is not found
Michael Hagedorn
michael.hagedorn at gmx.de
Sun Apr 20 13:41:43 PDT 2008
Aleksey,
rtfm won't help.
This are the instructions at the top of encrypt1.c:
/**
* XML Security Library example: Encrypting data using a template file.
*
* Encrypts binary data using a template file and a DES key from a
binary file
*
* Usage:
* ./encrypt1 <xml-tmpl> <des-key-file>
*
* Example:
* ./encrypt1 encrypt1-tmpl.xml deskey.bin > encrypt1-res.xml
*
* The result could be decrypted with decrypt1 example:
* ./decrypt1 encrypt1-res.xml deskey.bin
*
* This is free software; see Copyright file in the source
* distribution for preciese wording.
*
* Copyright (C) 2002-2003 Aleksey Sanin <aleksey at aleksey.com>
*/
And this is what I'm trying to do:
c:>encrypt1 encrypt1-tmpl.xml deskey.bin
Sorry for boring you but do you have any further hints?
Regards,
Michael
Aleksey Sanin wrote:
> Again, read the instructions at the top of encrypt1.c
>
> Aleksey
>
> Michael Hagedorn wrote:
>> I'm sure this is an absolute beginners question.
>> But what do I miss:
>>
>> C:\test\encrypt2\release>encrypt2 encrypt2-doc.xml deskey.bin
>> func=xmlSecEncCtxEncDataNodeRead:file=..\src\xmlenc.c:line=885:obj=unknown:subj=unknown:error=45:key
>> is not found:
>> func=xmlSecEncCtxXmlEncrypt:file=..\src\xmlenc.c:line=375:obj=unknown:subj=xmlSecEncCtxEncDataNodeRead:error=1:xmlsec
>> library function failed:
>> Error: encryption failed
>>
>> Used files (encrypt2.c encrypt2-doc.xml deskey.bin) are taken from
>> xmlsec1-1.2.11.tar.gz
>> Btw. same result for encrypt1.c ...
>>
>> Thanks for your help!
>> Michael
>> _______________________________________________
>> xmlsec mailing list
>> xmlsec at aleksey.com
>> http://www.aleksey.com/mailman/listinfo/xmlsec
More information about the xmlsec
mailing list