HighTechTalks DotNet Forums  

Encrypted XML in framework 1.1

Dotnet Security microsoft.public.dotnet.security


Discuss Encrypted XML in framework 1.1 in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Kim H
 
Posts: n/a

Default Encrypted XML in framework 1.1 - 03-12-2007 , 07:52 AM






I have been working with signed XML in .NET framework 1.1 using the
SignedXml class.
Now I also have to handle signed and encrypted XML, but does framework 1.1
support encrypted XML at all?
I can see .NET 2.0 does, but I have my doubts about 1.1.

Thanks,
Kim



Reply With Quote
  #2  
Old   
Dominick Baier
 
Posts: n/a

Default Re: Encrypted XML in framework 1.1 - 03-13-2007 , 03:17 PM






I am assuming the SignedXml class is already coming from WSE - IIRC the encryption
equivalent is called EncryptedData...


-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

Quote:
On Mar 12, 12:52 pm, "Kim H" <some... (AT) nowhere (DOT) com> wrote:

I have been working with signed XML in .NET framework 1.1 using the
SignedXml class.
Now I also have to handle signed and encrypted XML, but does
framework 1.1
support encrypted XML at all?
I can see .NET 2.0 does, but I have my doubts about 1.1.
Thanks,
Kim
And btw - my advise for you is to use WSE. It gives you signed and
ecrypted xml almost for free.

-Valery.
http://www.harper.no/valery



Reply With Quote
  #3  
Old   
Valery Pryamikov
 
Posts: n/a

Default Re: Encrypted XML in framework 1.1 - 03-13-2007 , 03:37 PM



On Mar 12, 12:52 pm, "Kim H" <some... (AT) nowhere (DOT) com> wrote:
Quote:
I have been working with signed XML in .NET framework 1.1 using the
SignedXml class.
Now I also have to handle signed and encrypted XML, but does framework 1.1
support encrypted XML at all?
I can see .NET 2.0 does, but I have my doubts about 1.1.

Thanks,
Kim
you can always encrypt it yourself. Remember however that if you are
using sign then encrypt order of operations, then you have to
serialize xml in explicit cannonical form first, calcuate hash of
cannonical xml data, and then encrypt it with CBC mode and random IV
prepended to the text. After that you put result in xmlenc element and
you are done. All could be done in about 100 lines of code.

-Valery.
http://www.harper.no/valery



Reply With Quote
  #4  
Old   
Valery Pryamikov
 
Posts: n/a

Default Re: Encrypted XML in framework 1.1 - 03-13-2007 , 03:38 PM



On Mar 12, 12:52 pm, "Kim H" <some... (AT) nowhere (DOT) com> wrote:
Quote:
I have been working with signed XML in .NET framework 1.1 using the
SignedXml class.
Now I also have to handle signed and encrypted XML, but does framework 1.1
support encrypted XML at all?
I can see .NET 2.0 does, but I have my doubts about 1.1.

Thanks,
Kim
And btw - my advise for you is to use WSE. It gives you signed and
ecrypted xml almost for free.

-Valery.
http://www.harper.no/valery



Reply With Quote
  #5  
Old   
Valery Pryamikov
 
Posts: n/a

Default Re: Encrypted XML in framework 1.1 - 03-14-2007 , 04:40 AM



On Mar 13, 8:17 pm, Dominick Baier
<dbaier (AT) pleasepleasenospam_leastprivilege (DOT) com> wrote:
Quote:
I am assuming the SignedXml class is already coming from WSE - IIRC the encryption
equivalent is called EncryptedData...

-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

Yes, Dominick is right,
SignedXml class is comming originally from WSE, even so it was made as
part of framework from v2.0.


-Valery.
http://www.harper.no/valery




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.