Re: decryption transcoding question

On Friday 11 January 2002 10:23, Frederick Hirsch wrote:
> Shouldn't the application do this transcoding? This way the decryptor can
> provide an application the decryption result in UTF-8 and it is up to the
> app to know the transcoding (since a general decryptor may not support
> all encodings)

My understanding is that sentence is about the decryptor, "The decryptor 
SHOULD support the ability to replace the EncryptedData... The application 
supplies the XML document context and identifies the EncryptedData element 
being replaced. If the document into which the replacement is occuring is 
not UTF-8, the decryptor MUST transcode the UTF-8 encoded characters into 
the target encoding."

The option you advocate is the 2nd one, "The decryptor MUST be able to 
return the value of Type and the UTF-8 encoded XML character data." 
However, the decryptor SHOULD be able to do it, and if it does then it MUST 
be able to handle the target encoding.

-- 

Joseph Reagle Jr.                 http://www.w3.org/People/Reagle/
W3C Policy Analyst                mailto:reagle@w3.org
IETF/W3C XML-Signature Co-Chair   http://www.w3.org/Signature/
W3C XML Encryption Chair          http://www.w3.org/Encryption/2001/

Received on Friday, 11 January 2002 15:04:30 UTC