[From nobody Wed Oct 29 15:07:14 2008
X-Account-Key: account2
Return-Path: &lt;xmlsec-bounces@aleksey.com&gt;
Delivered-To: serendib-wso2:com-kaushalye@wso2.com
X-Envelope-To: kaushalye@wso2.com
Received: (qmail 55093 invoked from network); 17 Jul 2006 07:16:45 -0000
Received: from mailwash1.pair.com (66.39.2.1)
	by mahawu.pair.com with SMTP; 17 Jul 2006 07:16:45 -0000
Received: from localhost (localhost [127.0.0.1])
	by mailwash1.pair.com (Postfix) with SMTP id 7F7A1B8E36
	for &lt;kaushalye@wso2.com&gt;; Mon, 17 Jul 2006 03:16:45 -0400 (EDT)
X-Virus-Check-By: mailwash1.pair.com
X-Spam-Check-By: mailwash1.pair.com
X-Spam-Status: No, hits=0.0 required=3.0 tests= autolearn=disabled
	version=3.000000
X-Spam-Flag: NO
X-Spam-Level: 
X-Spam-Filtered: 3fc932da366b20cd0389af2ee94c19b7
X-Greylisting: 209.68.4.0/24 is whitelisted
Received: from mahawu.pair.com (mahawu.pair.com [209.68.4.109])
	by mailwash1.pair.com (Postfix) with ESMTP id 54538B8E42
	for &lt;kaushalye@wso2.com&gt;; Mon, 17 Jul 2006 03:16:44 -0400 (EDT)
Received: from shell.aleksey.com (mail.aleksey.com [66.93.129.176])
	by mahawu.pair.com (Postfix) with ESMTP id D8D7312B10F
	for &lt;kaushalye@wso2.com&gt;; Mon, 17 Jul 2006 03:16:43 -0400 (EDT)
Received: by shell.aleksey.com (Postfix, from userid 99)
	id 7A760DACF2; Mon, 17 Jul 2006 00:16:42 -0700 (PDT)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by shell.aleksey.com (Postfix) with ESMTP id 7073FDACEF;
	Mon, 17 Jul 2006 00:16:37 -0700 (PDT)
X-Original-To: mailman-list-post+xmlsec@lists.aleksey.com
Delivered-To: mailman-list-post+xmlsec@lists.aleksey.com
Received: by shell.aleksey.com (Postfix, from userid 99)
	id 0EA9CDACED; Mon, 17 Jul 2006 00:16:33 -0700 (PDT)
X-Greylist: delayed 401 seconds by postgrey-1.16 at shell.aleksey.com;
	Mon, 17 Jul 2006 00:16:32 PDT
Received: from relay01.pair.com (relay01.pair.com [209.68.5.15])
	by shell.aleksey.com (Postfix) with SMTP id 57457DAC08
	for &lt;xmlsec@aleksey.com&gt;; Mon, 17 Jul 2006 00:16:32 -0700 (PDT)
Received: (qmail 16240 invoked from network); 17 Jul 2006 07:09:50 -0000
Received: from unknown (HELO ?192.168.1.229?) (unknown)
	by unknown with SMTP; 17 Jul 2006 07:09:50 -0000
X-pair-Authenticated: 222.165.173.179
Message-ID: &lt;44BB37BB.3080002@wso2.com&gt;
Date: Mon, 17 Jul 2006 12:39:47 +0530
From: Kaushalye Kapuruge &lt;kaushalye@wso2.com&gt;
User-Agent: Mozilla Thunderbird 1.0.8 (X11/20060502)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: xmlsec@aleksey.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [xmlsec] Encrypt using Triple-DES with openssl
X-BeenThere: xmlsec@aleksey.com
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: XML Security Library Discussions &lt;xmlsec.aleksey.com&gt;
List-Unsubscribe: &lt;http://www.aleksey.com/mailman/listinfo/xmlsec&gt;,
	&lt;mailto:xmlsec-request@aleksey.com?subject=unsubscribe&gt;
List-Archive: &lt;http://www.aleksey.com/pipermail/xmlsec&gt;
List-Post: &lt;mailto:xmlsec@aleksey.com&gt;
List-Help: &lt;mailto:xmlsec-request@aleksey.com?subject=help&gt;
List-Subscribe: &lt;http://www.aleksey.com/mailman/listinfo/xmlsec&gt;,
	&lt;mailto:xmlsec-request@aleksey.com?subject=subscribe&gt;
Sender: xmlsec-bounces@aleksey.com
Errors-To: xmlsec-bounces@aleksey.com
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on shell.aleksey.com
X-Spam-Level: 
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63

Hi,
I'm a new bee to xml security world.
Requirement:
I need to write a library to encrypt/sign xml. i.e. Something similar to 
xmlsec.
But my library is not based on DOM. It has another parsing mechanism.
Crypto library:
I 'm going to use openssl for this.
Question:
If I  need to support Triple-DES as the initial 
step(http://www.w3.org/2001/04/xmlenc#tripledes-cbc), is there a 
straight forward way in Openssl?
I found that openssl has  cipher &quot;EVP_des_ede3_cbc()&quot;.
If I send this cipher to  EVP_CipherInit_ex() method and get the result 
using EVP_CipherUpdate() and EVP_CipherFinal_ex) calls, does that mean 
the resulting buffer has encrypted data?
Or Do I have to send the resulted data three times(3 calls to Update) to 
comply with http://www.w3.org/2001/04/xmlenc#tripledes-cbc? (before 
encode and attach to the xml doc)
Please rectify me if Im wrong :)
Thanks,
Kaushalye

_______________________________________________
xmlsec mailing list
xmlsec@aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec

]
