Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2004

Tip: Looking for answers? Try searching our database.

Signing messages

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin Kulov - 01 Dec 2004 12:52 GMT
So, message signatures are described in Signature\SignedInfo element.

And I am using WSE 2.0 SP2 Prerelease.

For example:

<SignedInfo>
 <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" />
 <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1" />
 <Reference URI="#Id-9f6237be-83f3-4bb7-8e53-56c2a032b745">
   <Transforms>
     <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
   </Transforms>
   <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
   <DigestValue>ctf3qbSQt6hofrMjIrvsIaO1AaI=</DigestValue>
 </Reference>
..
 <SignatureValue>j7yVNKUvzh01hELvQk0fRFsxj+M=</ SignatureValue>
..
</SignedInfo>

The receiver uses the canonicalization and digest methods to calculate reference digest. Is that correct?

My questions are:

Why do you need to have DigestValue in the envelope when the receiver can calculate it by himself using the canonicalization and digest methods?

What is this Transforms element for? I have not seen any description on it yet.

What is the difference between Canonicalization and Transform algorithm?

The SignatureValue contains signature based on all digest values. How it combines all digest in one value in order to sign that value the public key of the receiver? Using Canonicalization method may be?

What if an intermediate decides to change a header value that is signed? Then the whole signature value will be modified. Does not this break the security in some way? Is the signature gets recreated automatically when a part that is signed gets modified?

I just saw that Reference element is marked as obsolete. What is going to replace it?

Martin Kulov
www.codeattest.com
Dilip Krishnan - 04 Dec 2004 17:37 GMT
Hello Martin,

http://msdn.microsoft.com/msdnmag/issues/04/11/XMLSignatures/default.aspx
..good article that describes xml signatures
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com

> So, message signatures are described in Signature\SignedInfo element.
>
[quoted text clipped - 51 lines]
> Martin Kulov
> www.codeattest.com
Martin Kulov - 06 Dec 2004 17:57 GMT
My head got burning. Awesome article!

Thanks Dilip,

Martin Kulov
www.codeattest.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.