473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

XML DSIG Question

Hi!

I have a general question concerning xml digital signatures.

Is XML-DSIG verifying that the content of the XML document isn't modified or
does XML-DSIG really signs the binary representation of some data (mostly
xml i guess).

To make my question more clearly i have an example:

Are the following 2 XML-Documents the same when signed? Do they result in
the same Signature?

XML 1:

<data><user>someuser</user></data>

XML 2 (indented):

<data>
<user>someuser</user>
</data>

The content is the same on a DOM-view but its different if you compare it
byte by byte.

So we have a specific problem when i get a signed XML from an external
module and transmit this xml document via soap to a webservice.

The soap serializer builds a dom and serializes it, but it looses is indent
when serialized although the content stays the same.

When the webservice now tries to verify the signature if fails. It can only
verify exactly the same XML-Document i get from the external module (byte by
byte).

So we have to decide if the verification routine is wrong of if its wrong to
build a DOM from a signed document for transmition to the service.

Thanks a lot for any help on this topic!!

Best wishes

Markus
Feb 7 '06 #1
3 1255
Hi Markus,

The Xml signature is based on the content of the Xml. In the XML
Canonicalization spec (c14n), it defines a standard form for an XML
document that is guaranteed to provide proper bit-wise comparisons and thus
consistent digital signatures. You can check the following links for more
information on this.

http://xml.coverpages.org/xmlSig.html

http://www.w3.org/TR/1999/WD-xmldsig-core-19991119/

In this case, I think there is something changed when passing the xml to
the web service.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Feb 8 '06 #2
Hi Kevin!!

Thanks a lot for your post, it really made things much clearer to me!

Best wishes

Markus

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> schrieb im Newsbeitrag
news:fG*************@TK2MSFTNGXA01.phx.gbl...
Hi Markus,

The Xml signature is based on the content of the Xml. In the XML
Canonicalization spec (c14n), it defines a standard form for an XML
document that is guaranteed to provide proper bit-wise comparisons and
thus
consistent digital signatures. You can check the following links for more
information on this.

http://xml.coverpages.org/xmlSig.html

http://www.w3.org/TR/1999/WD-xmldsig-core-19991119/

In this case, I think there is something changed when passing the xml to
the web service.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Feb 9 '06 #3
You're welcome, Markus.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Feb 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stevey | last post by:
I have the following XML file... <?xml version="1.0"?> <animals> <animal> <name>Tiger</name> <questions> <question index="0">true</question> <question index="1">true</question> </questions>
7
by: nospam | last post by:
Ok, 3rd or is it the 4th time I have asked this question on Partial Types, so, since it seems to me that Partial Types is still in the design or development stages at Microsoft, I am going to ask...
3
by: Ekqvist Marko | last post by:
Hi, I have one Access database table including questions and answers. Now I need to give answer id automatically to questionID column. But I don't know how it is best (fastest) to do? table...
7
by: nospam | last post by:
Ok, 3rd or is it the 4th time I have asked this question on Partial Types, so, since it seems to me that Partial Types is still in the design or development stages at Microsoft, I am going to ask...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.