santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hess Yvan" <>
Subject RE: Version 1.4 doesn't sign XML document correctly
Date Mon, 07 Aug 2006 14:47:17 GMT
It will be difficult to send you a test case because all my test cases are based on my library
(that is also bind to others library). I can try to do debugging to help you to isolate the
problem or to solve it :-). First a good Junit test case that you can introduce into XML security
JUnit tests is something similar to my TEST 2 (Signature with XML security and verification
with IBM toolkit XSS4J). In this case you are sure that the signature has been corectly be
generated and is valid.

Here is the signature of my XML document I am using into the context of my test case. As you
can see I am signing one part of the XML document and two  external binary documents. The
problem seems to come from the first Reference (<ds:Reference URI="">). The digest value
doesn't match after signature verification. The digest values of the two external reference

<edoc:SignatureBlock id="Revision-1-Signature-1">
   <edoc:Signer>Hess Yvan (first signature)</edoc:Signer>
   <ds:Signature xmlns:ds="">
         <ds:CanonicalizationMethod Algorithm=""/>
         <ds:SignatureMethod Algorithm=""/>
         <ds:Reference URI="">
               <ds:Transform Algorithm="">
                  <dsig-xpath:XPath xmlns:dsig-xpath=""
            <ds:DigestMethod Algorithm=""/>
         <ds:Reference URI="urn:hypersuite:8F1F8E64-C0A8024E0160C4B0-A0033464">
            <ds:DigestMethod Algorithm=""/>
         <ds:Reference URI="urn:hypersuite:8F1F8E64-C0A8024E0160C4B0-A0033465">
            <ds:DigestMethod Algorithm=""/>

-----Original Message-----
From: [] On Behalf Of Raul
Sent: lundi, 7. août 2006 16:21
Subject: Re: Version 1.4 doesn't sign XML document correctly

Can you open a bug report and attach a test case?
This will help a lot.



On 8/7/06, Hess Yvan <> wrote:
> Hi,
> XML security version 1.4 Beta0 and Beta1 doesn't sign the XML document 
> correctly. I developped a Java library that uses XML security to 
> sign/verify and to encrypt/decrypt XML documents. When I executed my 
> JUNIT tests, they failed when XML document are verified. I have two tests that failed:
> TEST 1:  The XML document is already signed (with XML security version 
> 1.2) and it is verified with the version 1.4 (beta0 and beta1). This 
> test failed using version 1.4 but was ok with precedent versions.
> TEST 2:  The XML document is signed with XML security V1.4Beta1 and is 
> verified with IBM XSS4J toolkit. This test failed using version 
> 1.4Beta1 but was ok with precedent versions.
> I think it is a critical bug...Please can you help me
> Regards. Yvan Hess


View raw message