question about crypted large ammout of data inside XML

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 UTC