You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by bu...@apache.org on 2006/09/28 23:04:37 UTC

DO NOT REPLY [Bug 40560] - RSA Decrytion doesn't Work

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40560>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40560





------- Additional Comments From blautenb@apache.org  2006-09-28 21:04 -------
Fixed in SVN.  I will do a 1.3.1 sometime soon that will have this in it.

In the interim - you can try the following (or just take XMLCipherImpl.cpp from
svn - this is the only change in there since 1.3.0).

Index: XENCCipherImpl.cpp
===================================================================
--- XENCCipherImpl.cpp  (revision 450386)
+++ XENCCipherImpl.cpp  (working copy)
@@ -552,10 +552,11 @@
        }

        safeBuffer sb("");
+       unsigned int decryptLen;

        if (handler != NULL) {

-               handler->decryptToSafeBuffer(c,
+               decryptLen = handler->decryptToSafeBuffer(c,
                        mp_encryptedData->getEncryptionMethod(),
                        mp_key,
                        mp_env->getParentDocument(),
@@ -570,7 +571,9 @@
                        "XENCCipherImpl::decryptElement - Error retrieving a han
dler for algorithm");

        }
-
+
+       sb[decryptLen] = '\0';
+
        // Now de-serialise
        DOMElement * element = mp_encryptedData->getElement();
        DOMDocumentFragment * frag = deSerialise(sb, element);


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.