XML Europe 2001 logo21-25 May 2001
Internationales Congress Centrum (ICC)
Berlin, Germany

Question: The status/design of XML Signatures and Encryption

Joseph Reagle, Jr. <reagle@w3.org>
 PDF version    Latest version   

ABSTRACT

Mr. Reagle will present a brief overview of the design, features, and status of the IETF/W3C XML Signature and W3C Encryption Activities.

Table of Contents

1. XML Security Introduction

2. dsig:Status

3. dsig: Design Principles

http://www.w3.org/TR/1999/WD-xmldsig-requirements-19991014.html#design-principles-scope

  1. The specification must describe how to use XML syntax to represent a signature over digital content (and XML content in particular).

  2. XML-signatures are generated from a hash over a list of references and the digest value of the references' content.

  3. The meaning of a signature is simple: The XML-signature syntax associates the content of resources listed with a key via a strong one-way transformation.

4. dsig:Syntax

<Signature> 
 <SignedInfo> 
 <CanonicalizationMethod/>? 
 <SignatureMethod/> 
 <Reference (URI=)?> 
 <Transforms/>? 
 <DigestMethod/> 
 <DigestValue/> 
 </Reference>+ 
 </SignedInfo> 
 <SignatureValue/> 
 <KeyInfo/>? 
 <Object/>* 
 </Signature>
 

5. dsig:Features

6. dsig:KeyInfo

7. dsig:Algorithms

[s04] <SignatureMethod Algorithm= "http://www.w3.org/2000/02/xmldsig#dsa"/> 
 
Type Algorithm Requirements Algorithm URI
Digest SHA1 REQUIRED http://www.w3.org/2000/09/xmldsig#sha1
Encoding Base64 REQUIRED http://www.w3.org/2000/09/xmldsig#base64
MAC HMAC-SHA1 REQUIRED http://www.w3.org/2000/09/xmldsig#hmac-sha1
Signature DSAwithSHA1 (DSS) REQUIRED http://www.w3.org/2000/09/xmldsig#dsa
Canonicalization Canonical XML REQUIRED http://www.w3.org/TR/2000/WD-xml-c14n-20000907
Others XPath RECOMMENDED http://www.w3.org/TR/1999/REC-xpath-19991116

8. xenc:Status

9. xenc: Design Goals

http://www.w3.org/TR/1999/WD-xmldsig-requirements-19991014.html#design-principles-scope

  1. Describe how to use XML to represent a digitally encrypted Web resources including XML, and portions thereof. Presently limited to elements (not attribute values).

  2. Provide for the separation of encryption information from encrypted data, and support reference mechanisms for addressing encryption information from encrypted data sections and vice versa.

  3. Provide for recursive encryption (capable of encrypting XML with portions already encrypted)

10. xenc:Example

In the encrypted version of an XML instance, the <EncryptedData> element will appear in place of an encrypted element or its content.

Before:

<Animals> <Cat/> <Rodents> <Rabbit/> 
<Mouse/> </Rodents> <Dog/> <Animals>
 

After Rodents are encrypted

<Animals> <Cat/> <EncryptedData xmlns=""> 
<CipherText>M3MXCV...</CipherText> 
</EncryptedData> <Dog/> <Animals>
 

11. xenc:Syntax

<EncryptedData Id="" Type=""> 
<EncryptedKey/>? <EncryptionMethod/>? 
<ds:KeyInfo> ... <enc:EncryptedKey/> 
</ds:KeyInfo>? 
<CipherText URI="">iamscrambled</CipherText> 
</EncryptedData>
 

12. xenc:Features

13. xenc:Algorithms

Type Algorithm Requirements
Block Encryption AES/3DES REQUIRED
Key Transport AES-RSA-OEAP 3DES-RSA-v1.5 REQUIRED
MAC AES/3DES with SHA1 OPTIONAL
Signature XML Signature OPTIONAL
Canonicalization Canonical XML OPTIONAL
Compression et al n/a

14. References

Biography

Joseph Reagle, Jr.
Policy Analyst, W3C/LCS/MIT
Massachusetts Institute of Technology
Cambridge
Massachusetts
USA
Email: reagle@w3.org Web: www.w3.org/People/Reagle

Joseph Reagle - Joseph Reagle is a Research Engineer at the MIT Lab for Computer Science where he serves as a W3C public policy analyst, and Working Group Chair for the joint IETF/W3C XML-Digital-Signature Working Group and the W3C XML Encryption Working Group. At the W3C, he has also worked on privacy, content-selection/free-speech, and intellectual property issues as they relate to the Internet. Mr. Reagle has a Computer Science degree from UMBC and a Masters from MIT's Technology and Policy Program, where he was a Research Assistant at the Research Program on Communication Policy. Joseph has been a Resident Fellow at the Berkman Center for Internet & Society at the Harvard Law School where he wrote about Web-data schema design and contract law, computer agents and legal agency, and Internet culture and democratic/anarchist principles. He's also done short consulting projects for Open Market (electronic commerce protocols) McCann-Erickson (Internet and interactive media) and go-Digital (Internet gambling).