473,768 Members | 5,334 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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>som euser</user></data>

XML 2 (indented):

<data>
<user>someuse r</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 1286
Hi Markus,

The Xml signature is based on the content of the Xml. In the XML
Canonicalizatio n 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.mic rosoft.com> schrieb im Newsbeitrag
news:fG******** *****@TK2MSFTNG XA01.phx.gbl...
Hi Markus,

The Xml signature is based on the content of the Xml. In the XML
Canonicalizatio n 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
5042
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
2665
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 it differently. FOUR QUESTIONS: The background: I got three (3) files
3
3090
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 before rowID answID qryrow questionID datafield 1591 12 06e 06e 06e question 1593 12 06f 06f 06f question 1594 12 answer to the question 06f
7
1450
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 it differently. FOUR QUESTIONS: The background: I got three (3) files
0
9576
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10175
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10017
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9961
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9843
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7384
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6656
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5425
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3932
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.