[xmlsec] Encryption example wont work

Aleksey Sanin aleksey at aleksey.com
Thu Dec 14 07:21:46 PST 2006

> I'm trying the encrypt1.c example. I have complied it dynamical with the 
> windows port. After executing the program it crashes. 

Section 2.7 from the FAQ


> In the comments is 
> written I should use the "deskey.bin". This file is 24 bytes 
> long->Keylength must be 96 Bits. But in the internet is written that DES 
> should use 56 bit keys? Is this my problem?

No. Triple-DES key is 168=3*56=8*24

> Where can I define the encryption method? Is it only defined by the 
> values of the template xml?
You set the encryption method in the template or in the xmlSecEncCtx.


More information about the xmlsec mailing list