W3C home > Mailing lists > Public > xml-encryption@w3.org > June 2001

PlainText/PlainData and its digest

From: Amir Herzberg <AMIR@newgenpay.com>
Date: Mon, 11 Jun 2001 12:36:48 +0300
Message-ID: <078EE8822DCFD411AAA1000629D56ADC0B7C83@IMP01>
To: "Xml Encrypt (E-mail)" <xml-encryption@w3.org>
Cc: "Itsik Mantin (E-mail)" <itsik@wisdom.weizmann.ac.il>
I'll like to add an optional element called PlainData for including the
plaintext (in EncryptedType). By having such a tag, there is a simple
interface for indicating which data needs to be encrypted - you simply put
it (or a reference to it) in the PlainData. The processing will encrypt the
contents, put it in CipherData element, and remove the plaintext from the
PlainData element (or the entire PlainData element). 

The PlainData element will also have a DigestMethod and DigestValue optional
element. This would be used to include a hash of the plaintext (as discussed
on the list). Right now there are DigestMethod and DigestValue elements to
CipherData; I think as it currently stands, it is not quite clear if this is
a digest (hash) of the ciphertext or of the plaintext, and anyway we may
need both of them. 

The PlainData element may envelope the actual plaintext (using ds:Object or
reference - I don't think we need cryptobinary option here). 

Suggested syntax: 

A. Add definition of PlainData, much like existing CipherData:
<element name='PlainData' type='enc:PlainDataType'/>
  <complexType name='PlainDataType'>
        <element name='PlainReference' type='PlainReferenceType'/>
		<simpleType name='PlainReferenceType'>
		  <attribute name='Ref' type='anyURI' use='required'/>
        <element ref='ds:Object'/>
      <sequence minOccurs='0'>
        <element ref='ds:DigestMethod'/> 
        <element ref='ds:DigestValue'/> 

B. Changes to EncryptedType: 
1. make CipherData optional:
change <element ref='enc:CipherData'/> to <element ref='enc:CipherData'
2. Add optional PlainData element: 
<element ref='enc:PlainData' minOccurs='0'/>

p.s. apologies, I'll be on a plane during today's call so I can't join. Next

Best regards, 
Amir Herzberg
CTO, NewGenPay Inc.  
SMS (urgent only!): _subject_ of email to aherzberg@walla.co.il
Received on Monday, 11 June 2001 05:33:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:32:00 UTC