473,379 Members | 1,423 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,379 software developers and data experts.

Signed Xml - Reference - Digest Value

According to the xml digital signature standard
(http://www.w3.org/TR/xmldsig-core/), signature can be one of following:
enveloping, enveloped and detached. The standard says that signature element
should be excluded when signing using enveloped signature. It also says that
Object element (in case of enveloping signatgure) is not part of digital
signature.

So I started expermienting with SignedXml object in .net framework. To my
surprise, the digest value of a reference changed depending on whether the
signature is envloping or enveloped. I even used the transform for the
reference for canonicalization in both cases.

Why is this case? Can any one explain?

Thanks.
Raghu/..
Nov 12 '05 #1
1 4577
I found this info in the standard:

***
The Object's Id is commonly referenced from a Reference in SignedInfo, or
Manifest. This element is typically used for enveloping signatures where the
object being signed is to be included in the signature element. The digest
is calculated over the entire Object element including start and end tags.

Note, if the application wishes to exclude the <Object> tags from the digest
calculation the Reference must identify the actual data object (easy for XML
documents) or a transform must be used to remove the Object tags (likely
where the data object is non-XML).

****

So this explains why digest value would be different in both cases. To
remove <Object> tag in the calculation of digest value, what should I do?

"Raghu" <Ra***@nospamzzzqcsi.com> wrote in message
news:ey**************@tk2msftngp13.phx.gbl...
According to the xml digital signature standard
(http://www.w3.org/TR/xmldsig-core/), signature can be one of following:
enveloping, enveloped and detached. The standard says that signature element should be excluded when signing using enveloped signature. It also says that Object element (in case of enveloping signatgure) is not part of digital
signature.

So I started expermienting with SignedXml object in .net framework. To my
surprise, the digest value of a reference changed depending on whether the
signature is envloping or enveloped. I even used the transform for the
reference for canonicalization in both cases.

Why is this case? Can any one explain?

Thanks.
Raghu/..

Nov 12 '05 #2

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

Similar topics

0
by: Jp Calderone | last post by:
I've been trying to implement support for this authentication scheme for a little while now, and in the last couple days I've been completely stumped. I know about the digest authentication code...
19
by: MiniDisc_2k2 | last post by:
Okay, here's a question about the standard. What does it say about unsigned/signed mismatches in a comparison statement: char a = 3; unsigned char b = 255; if (a<b) Now what's the real...
8
by: Rade | last post by:
Following a discussion on another thread here... I have tried to understand what is actually standardized in C++ regarding the representing of integers (signed and unsigned) and their conversions....
6
by: Jon G | last post by:
Hi, I´m a bit of a newbie when it comes to xml but here goes: I am using the SignedXml-class to construct a signed xmldoc which in turn contains 1 or more signed xml-doc which creates the...
0
by: moulincourt | last post by:
Unable to use XmlDsigXPathTransform in SignedXml. It doesn't filter the xml document and the hashvalue is allways the same Based on first example provided here: ...
9
by: Fred Ma | last post by:
Hello, I've been trying to clear up a confusion about integer promotions during expression evaluation. I've checked the C FAQ and C++ FAQ (they are different languages, but I was hoping one...
10
by: tinesan | last post by:
Hello fellow C programmers, I'm just learning to program with C, and I'm wondering what the difference between signed and unsigned char is. To me there seems to be no difference, and the...
26
by: John Harrison | last post by:
I have a problem. I want to compare an integral value, n, against three half open ranges as follows [-A, 0) // range 1 [0, B) // range 2 [B, C} // range 3 Each range corresponds to a...
6
by: Kislay | last post by:
Consider the following code snippet unsigned int i=10; int j= - 2; // minus 2 if(i>j) cout<<"i is greater"; else cout<<"j is greater"; Since i is unsigned , j is greater . I know why , but...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.