[Fwd: [xmlsec] Encrypt using Triple-DES with openssl]

Kaushalye Kapuruge kaushalye at wso2.com
Mon Jul 17 02:12:55 PDT 2006


Hi,
Refering to my previuos mail...

My Code is like this

----BEGIN CODE----

Initialize cipher ctx
EVP_CipherInit_ex(cipher_ctx, EVP_des_ede3_cbc(), NULL, NULL, NULL, 1)

while (true){//    until the input buffer is empty
   if(in_buf is empty) break;

   set the size of the output buffer out_buf
   EVP_CipherUpdate(cipher_ctx, out_buf, out_length, in_buf, in_length )
   remove the processed data from the input buffer   }
EVP_CipherFinal_ex(cipher_ctx, out_buf,out_length)

EVP_CIPHER_CTX_cleanup

----END CODE----

Do I have to repeat that code block three times before attaching the 
result to the xml doc
(for http://www.w3.org/2001/04/xmlenc#tripledes-cbc )?

Thanks,
Kaushalye
-------------- next part --------------
An embedded message was scrubbed...
From: Kaushalye Kapuruge <kaushalye at wso2.com>
Subject: [xmlsec] Encrypt using Triple-DES with openssl
Date: Mon, 17 Jul 2006 12:39:47 +0530
Size: 4404
Url: http://www.aleksey.com/pipermail/xmlsec/attachments/20060717/4a92f41b/xmlsecEncryptusingTriple-DESwithopenssl-0002.eml


More information about the xmlsec mailing list