3 Replies Latest reply: May 9, 2012 7:20 AM by EJP RSS

    Is this XML snippet Enveloped or Detached XML Signature?

    740252
      Hi

      Can you please tell me what type of XML Signature is applied in the below XML snippet? Is it Enveloped or Detached ? And please tell me why?

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <invoice xmlns="http://www.company.com/accounting">
           <items>
                <item>
                     <desc>Applied Cryptography</desc>
                     <type>book</type>
                     <unitprice>44.50</unitprice>
                     <quantity>1</quantity>
                </item>
           </items>
           <creditcard>
                <number>123456789</number>
                <expiry>10/20/2009</expiry>
                <lastname>John</lastname>
                <firstname>Smith</firstname>
           </creditcard>
           <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
                <SignedInfo>
                     <CanonicalizationMethod
                          Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />
                     <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1" />
                     <Reference URI="">
                          <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
                          <DigestValue>5Bx3NR1uv5jworcHMbfeWG8sjXc=</DigestValue>
                     </Reference>
                </SignedInfo>
                <SignatureValue>ehSps00KGSsBmuSRgPyCxWAC7vdW0ogF2hwKUVUsEddqkuDgK4TTOQ==
                </SignatureValue>
           </Signature>
      </invoice>

      Thank you
      Rajesh