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

question about crypted large ammout of data inside XML

From: Nedelcho Stanev <nstanev@syntrex.com>
Date: Wed, 20 Mar 2002 17:05:20 +0100
Message-ID: <06e701c1d029$0ae215f0$3402a8c0@DARKSTAR>
To: <xml-encryption@w3.org>
Hello,

I read lots of mails about signing and encryption, but i have problem
that not yet covered in these drafts.
When a somebody send a big file, for example 5GB
if i want to encrypt and sign it and put in in XML
i must send first signature and after this body of file
as described in
http://lists.w3.org/Archives/Public/xml-encryption/2000Aug/att-0001/01-xmlen
coverview.html#encryptioninfoelement
in "How do I use XML Signatures and XML Encryption together?" part.
but this means that file must be loaded in memory, calculated digest and
after this crypted ...
but, if i want to do this with streams, i don't know sha before end of file.
the example is
<client> ---<server>
and normaly i have something like
<doc>
  <raw data> base64 encoded </raw data> ( this can be very large block of
data , and i need to send this with streaming )
  <signature of raw data> base64 encoded </signature of raw data>
  <some other attributes> .... </some other attributes>
</doc>
if client send to server large file, they don't know signature before end of
file.
so , my question is : may there are some new drafts describing this problem
or may be better solution is to change places, first encrypted data, and
after this signature of encrypted data.

Nedelcho Stanev
Syntrex Inc.
Padova, Italy.
Received on Wednesday, 20 March 2002 11:05:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:42:20 GMT