<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=KOI8-R">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Check how to you serialize XML document. You *don't* want to format
signed document.<br>
<br>
Aleksey<br>
<br>
Lehnert, Hartmut wrote:<br>
<blockquote type="cite"
cite="mid96C102324EF9D411A49500306E06C8D10333AB56@eketsv02.cubis.de">
<meta http-equiv="Content-Type" content="text/html; ">
<title>Nachricht</title>
<meta content="MSHTML 6.00.2726.2500" name="GENERATOR">
<div><font face="Arial" size="2"><span class="566025313-15102003">Hi,</span></font></div>
<div>š</div>
<div><font face="Arial" size="2"><span class="566025313-15102003">I'm
using xmlsec with my own crypto lib (smartcard signatures) to generate
XML signatures. The Signature node is generated dynamically - together
with a XAdES Object node containing SignedProperties (e.g.
SigningTime). To use these SignedProperties a Reference node is created
below SignedInfo node.</span></font></div>
<div><font face="Arial" size="2"><span class="566025313-15102003">I've
also written an OpenSSL based verificator for the output docs of the
first application.</span></font></div>
<div><font face="Arial" size="2"><span class="566025313-15102003">Now
comes the problem: When I generate the complete Signature node
dynamically, the hash value for the SignedProperties cannot be
reproduced by the OpenSSL based application, but when I use the output
of the first application as an input with Signature node template (also
for the first application), then the output hash values now can all be
verified by the OpenSSL based application. An example for the input
docs with Signature template is appended to this email.</span></font></div>
<div>š</div>
<div><font face="Arial" size="2"><span class="566025313-15102003">Do
you have an idea?</span></font></div>
<div><font face="Arial" size="2"><span class="566025313-15102003">Thank
you very much.</span></font></div>
<div><font face="Arial" size="2"><span class="566025313-15102003">Hartmut
Lehnert</span></font></div>
</blockquote>
</body>
</html>