<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>4746</bug_id>
          
          <creation_ts>2007-06-24 17:22:07 +0000</creation_ts>
          <short_desc>clarify SMLIF section 2 signature requirements</short_desc>
          <delta_ts>2007-11-19 22:24:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>SML</product>
          <component>Interchange Format</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>editorial</keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>LC</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Arwe">johnarwe</reporter>
          <assigned_to name="Valentina Popescu">popescu</assigned_to>
          <cc>sandygao</cc>
          
          <qa_contact name="SML Working Group discussion list">public-sml</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>15574</commentid>
    <comment_count>0</comment_count>
    <who name="John Arwe">johnarwe</who>
    <bug_when>2007-06-24 17:22:07 +0000</bug_when>
    <thetext>context: Since documents may have been signed using XML Signature [XML-Signature] or have had cryptographic digests made of them for other purposes, documents exchanged using SML-IF must be invariant with respect to XML Canonicalization. [Canonical XML]

This is currently in what appears to be a non-normative section.  I do not see any corresponding normative text for the MUST. Is this requirement still relevant, and is it already covered by normative text elsewhere or does it need to be added to normative text?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17283</commentid>
    <comment_count>1</comment_count>
    <who name="Virginia Smith">virginia.smith</who>
    <bug_when>2007-10-17 17:09:15 +0000</bug_when>
    <thetext>Kumar will write a proposal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17417</commentid>
    <comment_count>2</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2007-10-25 18:56:35 +0000</bug_when>
    <thetext>*** Bug 5134 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17616</commentid>
    <comment_count>3</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2007-11-07 18:03:37 +0000</bug_when>
    <thetext>Proposal:
Remove all references to XML canonicalization from the specification.

Reasons / More Info:
--------------------
I investigated XML signature related issues to propose answers to the following questions:
1.	Should the SML-IF spec define whether a producer must perform XML canonicalization before writing an SML-IF document?
2.	If documents are already signed, what should an SML-IF producer do to the signatures if the producer wants to sign the entire document as well? That is, should the producer strip the existing signature(s) before adding documents to SML-IF?

[1]
The XML signature spec defines a customizable and extensible method for signing XML and non-XML content. A digital signature can be embedded in the signed document (there are 2 sub-flavors: enveloped / enveloping) or it can be detached from the signed document. The Signature element contains a single signature over one or more data objects. Each data object to be signed is represented using a single Reference element (this should not be confused with SML reference element). Each Reference element allows zero or more transformations over original data before the digital signature is computed. The XML canonicalization is just one such possible transform. A transform may omit parts of the original data or add new one. There is no restriction on the type or number of transforms that an application may use. One canonicalization algorithm removes comments. One other form preserves comments. Each application must be free to use the transforms that best fit its needs. The SML WG cannot predict specific requirements for all applications based on SML therefore we must not impose any restriction involving specific transformation. Note that this does not harm interop. Regardless of the number and type of transformations used, both producer and consumer apply them identically and thus arrive at the same message digest (if there is no tampering).

[2]
The XML signature is encoded using XML elements. Even if a document already has an XML signature, it can be safely packaged inside an SML-IF document. Since the SML-IF doc is itself an XML doc, it can be signed like a regular XML doc. A producer does not need to remove existing signatures. Moreover, if it is desired that existing signatures should not be included in signature calculation of the SML-IF document, a producer can logically remove the signatures (by defining appropriate transforms) without having to physically remove the signatures. An application must be free to use either method. 


Some references with relevant info:
1.	http://www.w3.org/TR/2001/REC-xml-c14n-20010315
2.	http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/
3.	http://www.w3.org/Signature/Drafts/PROP-xmldsig-faq-20000218/Overview.html
4.	http://msdn.microsoft.com/msdnmag/issues/04/11/XMLSignatures/

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17804</commentid>
    <comment_count>4</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2007-11-19 21:39:02 +0000</bug_when>
    <thetext>Please remove the reference to XML Canonicalization from the SML IF spec. In particular, remove this text 

 Since documents may have been signed using XML Signature
[XML-Signature] or have had cryptographic digests made of them for other
purposes, documents exchanged using SML-IF must be invariant with respect to
XML Canonicalization. [Canonical XML]
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17809</commentid>
    <comment_count>5</comment_count>
    <who name="Valentina Popescu">popescu</who>
    <bug_when>2007-11-19 22:24:10 +0000</bug_when>
    <thetext>fixed as per comment #4

This section has been removed from the spec :

Since documents may have been signed using XML Signature [XML-Signature] or have had cryptographic digests made of them for other purposes, documents exchanged using SML-IF must be invariant with respect to XML Canonicalization. [Canonical XML]</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>