[xmlsec] XML digital signature enveloped
David Varas
david.varas@usach.cl
Tue, 11 Mar 2003 18:39:13 -0400
This is a multi-part message in MIME format.
--Boundary_(ID_87O3zxl2Q0CaPf90cvab3Q)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: quoted-printable
HI :
I'm using your api for sign and verify digital signatures, and I want to =
sign with Enveloped Transform, a document like this:
<test>
<item>
<data>444444<data>
</item>
</test>
But only I want to sign the content of the "data" tag (4444).
I'm signed the document with xmlsec, but when I'm use=20
-xmlSecReferenceAddTransform(referenceNode,xmlSecTransformEnveloped);
and the reference node create like this=20
-xmlSecSignedInfoAddReference(signedInfoNode,NULL,NULL,NULL);
ALL the document it's signed, not only the content of the <data>.
How I can with transform ennveloped do that (without ID's)=BF?
It's Ok that way or not=BF?.
=BFExist some diference beetwen <reference URI=3D""> and <reference>?
Thanks
David Varas
--Boundary_(ID_87O3zxl2Q0CaPf90cvab3Q)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>HI :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm using your api for sign and verify =
digital=20
signatures, and I want to sign with Enveloped Transform, a =
document like=20
this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><test></FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV><FONT face=3DArial size=3D2><item></FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
<data>444444<data></FONT></DIV>
<DIV>
<DIV><FONT face=3DArial =
size=3D2></item></FONT></DIV></DIV></BLOCKQUOTE>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial=20
size=3D2></test></FONT></DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>But only I want to sign the content of =
the "data"=20
tag (4444).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm signed the document with xmlsec, =
but when I'm=20
use <FONT size=3D2><FONT size=3D2><FONT size=3D2>
<P>-xmlSecReferenceAddTransform(referenceNode,xmlSecTransformEnveloped);<=
/P>
<P>and the reference node create like this </P><FONT size=3D2>
<P>-xmlSecSignedInfoAddReference(signedInfoNode,NULL,NULL,NULL);</P>
<P>ALL the document it's signed, not only the content of the =
<data>.</P>
<P> </P>
<P>How I can with transform ennveloped do that (without ID's)=BF?</P>
<P>It's Ok that way or not=BF?.</P>
<P>=BFExist some diference beetwen <reference URI=3D""> and=20
<reference>?</P>
<P> </P>
<P>Thanks</P>
<P>David Varas</P>
<P> </P>
<P> </P>
<P> </P>
<P> </P></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
--Boundary_(ID_87O3zxl2Q0CaPf90cvab3Q)--