You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by sc...@apache.org on 2012/06/21 22:59:13 UTC

svn commit: r1352683 - /santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.cpp

Author: scantor
Date: Thu Jun 21 20:59:12 2012
New Revision: 1352683

URL: http://svn.apache.org/viewvc?rev=1352683&view=rev
Log:
Pass cipher mode and tag length into cipher transform for GCM encryption support.

Modified:
    santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.cpp

Modified: santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.cpp?rev=1352683&r1=1352682&r2=1352683&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.cpp Thu Jun 21 20:59:12 2012
@@ -99,6 +99,7 @@ void XENCAlgorithmHandlerDefault::mapURI
 	skt = XSECCryptoSymmetricKey::KEY_NONE;
 	isSymmetricKeyWrap = false;
     skm = XSECCryptoSymmetricKey::MODE_NONE;
+    taglen = 0;
 	
 	switch (kt) {
 
@@ -1103,7 +1104,7 @@ bool XENCAlgorithmHandlerDefault::encryp
 	// Must be bulk symmetric - do the encryption
 
 	TXFMCipher *tcipher;
-	XSECnew(tcipher, TXFMCipher(doc, key, true));
+	XSECnew(tcipher, TXFMCipher(doc, key, true, skm, taglen));
 	plainText->appendTxfm(tcipher);
 
 	// Transform to Base64