Re: openssl for xml

2006-07-13 Thread Marek Marcola
Hello, > Thanks for the help. This example uses EVP_rc2() > If I need to use a block cipher such as DES, I have to use IV and > padding. Can you direct me to such a sample code.? > I dont think this will work If I replace Evp_rc2 with EVP_des_cbc() In general this should work, as an example I atta

Re: openssl for xml

2006-07-13 Thread Kaushalye Kapuruge
Hi All, Think that I have to encrypt a certain xml doc with Triple DES alogorithm Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/> Is there a single call that I can get the encrypted data. All I can use is Evp_des_cbc(). Do I have to use this Evp_des_cbc() encryption 3 times? Th

Re: openssl for xml

2006-07-13 Thread Kaushalye Kapuruge
Hi, Thanks for the help. This example uses EVP_rc2() If I need to use a block cipher such as DES, I have to use IV and padding. Can you direct me to such a sample code.? I dont think this will work If I replace Evp_rc2 with EVP_des_cbc() -Cheers, Kau Marek Marcola wrote: Hello, I'd like i

Re: openssl for xml

2006-07-12 Thread Girish Venkatachalam
As far as block ciphering goes, it just munches input data. It really doesn't care whether the input is text or xml(special form of text) or binary data. So I think you should not worry about that. There are examples of how to use the crypto functions in OpenSSL in the man pages. "man evp" will h

Re: openssl for xml

2006-07-12 Thread Marek Marcola
Hello, > I'd like if somebody can point me out how to use openssl for block > cipher encryption.e.g. With few samples. http://www.openssl.org/docs/crypto/EVP_EncryptInit.html# Best regards, -- Marek Marcola <[EMAIL PROTECTED]>

Re: openssl for xml

2006-07-12 Thread Kaushalye Kapuruge
Hi Steffen, Thanks for the reply. But as I've mentioned in my previuos mail, xmlsec is not suited for my requirement. Xmlsec uses DOM and I've a different implementation. I can modify xmlsec but that would be lots of work. If I clarify what I need again... I'd like if somebody can point me out

Re: openssl for xml

2006-07-12 Thread Steffen Lips
HI, do really need to write a library? There is already a library for XMLSig and XMLEnc that uses OpenSSL. http://www.aleksey.com/xmlsec/ Reg Wu Dixer Kaushalye Kapuruge schrieb: Hi, I need to write an xml security library to encrypt and decrypt xml documents. For that I need to use openss

openssl for xml

2006-07-12 Thread Kaushalye Kapuruge
Hi, I need to write an xml security library to encrypt and decrypt xml documents. For that I need to use openssl as the crypto library and do not have a clear idea how to use it for block ciphers(e.g. DES). Later I have to support signing as well. Can somebody direct me to few openssl samples