[xmlsec] Different digest value between .NET implementation and XmlSec?

Aleksey Sanin aleksey@aleksey.com
Thu, 09 Oct 2003 13:07:58 -0700


This is a multi-part message in MIME format.
--------------090603050301040404000801
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

xmlsec uses c14n code from LibXML2. If I just do a c14n for your file 
then the processing
instruction node "<?xml-stylesheet type="text/xsl" href="myfile.xsl" 
?>"  is included in the
output:

    [aleksey@lsh dev]$./libxml2/testC14N  --with-comments a.xml
    <?xml-stylesheet type="text/xsl" href="myfile.xsl" ?>
    <sales quarter="2001-01">
    ...
    </sales>

It would be helpfull if you can give a more detailed example with 
explanations how are you
doing signatures in both xmlsec and .net cases.

With best regards,
Aleksey


--------------090603050301040404000801
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
xmlsec uses c14n code from LibXML2. If I just do a c14n for your file
then the processing <br>
instruction node "<span class="937574019-09102003"><font face="Arial"
 size="2">&lt;?xml-stylesheet type="text/xsl" href="myfile.xsl" ?&gt;"&nbsp;
</font></span>is included in the <br>
output:<br>
<br>
&nbsp;&nbsp;&nbsp; [aleksey@lsh dev]$./libxml2/testC14N&nbsp; --with-comments a.xml<br>
&nbsp;&nbsp;&nbsp; &lt;?xml-stylesheet type="text/xsl" href="myfile.xsl" ?&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;sales quarter="2001-01"&gt;<br>
&nbsp;&nbsp;&nbsp; ...<br>
&nbsp;&nbsp;&nbsp; &lt;/sales&gt;<br>
<br>
It would be helpfull if you can give a more detailed example with
explanations how are you<br>
doing signatures in both xmlsec and .net cases.<br>
<br>
<span class="937574019-09102003"><font face="Arial" size="2">With best
regards,<br>
Aleksey<br>
<br>
</font></span>
</body>
</html>

--------------090603050301040404000801--