W3C home > Mailing lists > Public > xml-encryption@w3.org > January 2002

RE: content type decryption clarification?

From: Takeshi Imamura <IMAMU@jp.ibm.com>
Date: Thu, 17 Jan 2002 13:12:37 +0900
To: <hirsch@zolera.com>
Cc: <reagle@w3.org>, "Christian Geuer-Pollmann" <geuer-pollmann@nue.et-inf.uni-siegen.de>, <xml-encryption@w3.org>
Message-ID: <OF4B3022AE.2131714E-ON49256B44.0015C368@LocalDomain>

>I think an XML document with only an EncryptedDataElement as the root can
>result in a non-well-formed document as follows
>By decrypting in place you produce a new document without a root element
>This is possible if content was encrypted that did not contain an element
>the outmost part.
>I see your point - the original was not well formed either. So this is
>another example of moving an XML fragment to produce an non well-formed

If the first "plaintext" in the text means, as you say, a whole document, I
can understand this case.  But the text should be changed to something

Note: If the Type is "content", the document resulting from decryption will
not be well-formed if (a) the original fragment was not well-formed (e.g.,
PCDATA by itself is not well-formed), and (b) the EncryptedData element was
the root element of the document.)

How do you feel?

Tokyo Research Laboratory
IBM Research
Received on Wednesday, 16 January 2002 23:12:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:13:07 UTC