Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

As the standard is not completely clear in this matter, I'm trying to found out if the XAdES standard (ETSI TS 101 903 v1.4.2) describes distributed case in which the SigAndRefsTimeStamp element or ArchiveTimeStamp elements can secure multiple SignedProperties elements.

Basically what I want is something like this:

      file-1.xml        other-X-L.xml                 old-Archival.xml
      +--------+       +----------------+            /
      |+------+|\      | XAdES-X-L      |          ,'
      ||+----+|| |     |  Time Stamp    |         /
      |||XML ||| \     +--------------+-+       ,'
      |||Doc.|||  \                    \       /
      |||    |||   \                    `.    ;
      ||+----+||    \                     \   |  archival-20121004.xml
      ||XAdES ||     | daily-20121001.xml  \  | +--------------------+
      || BES  ||     \ +----------------+   \ : |+------------------+|
      |+------+|      \|+--------------+|\   \ `++old-Archival.xml  ||
      |XAdES-T |       +|file-1.xml ref|| \   \ ||SHA-256 Digest    ||
      +--------+       ||SHA-1 Digest  ||  \   \|+------------------+|
                       |+--------------+|   `.  +|other-X-L.xml ref ||
      file-2.xml   __..+|file-2.xml ref||     \ ||SHA-256 Digest    ||
      +--------+-''    ||SHA-1 Digest  ||      \|+------------------+|
      |+------+|       |+--------------+|       +|daily-20121004.xml||
      ||+----+||       |XAdES-X-L       |       ||SHA-256 Digest    ||
      |||XML |||       | Time Stamp     |       |+------------------+|
      |||Doc.|||       +----------------+       |XAdES-A             |
      |||    |||                                | Time Stamp         |
      ||+----+||                                +--------------------+
      ||XAdES ||
      || BES  ||
      |+------+|
      |XAdES-T |
      +--------+

Is this possible?

share|improve this question
    
1+ for the ascii map –  Digital Fire Oct 8 '12 at 18:56
add comment

2 Answers

up vote 3 down vote accepted

Yes, this is possible.

The XAdES standard uses regular expressions to describe the various forms. This is how the SignedInfo field of the XAdES-X forms is described:

< ds:SignedInfo >                 

  < ds:CanonicalizationMethod/ > 

  < ds:SignatureMethod/ >         

  (< ds:Reference URI? >         

    (< ds:Transforms >)?          

    < ds:DigestMethod >           

    < ds:DigestValue >            

  < /ds:Reference >)+             

< /ds:SignedInfo >

The '+' after the reference field means that this field may appear once or more times.

share|improve this answer
    
But wouldn't that require actually signing this information every time I create a new form or archive version (daily-20121001.xml, archival-20121004.xml, old-Archival.xml, etc.)? Then verifying it wouldn't be exactly straight-forward, wouldn't it? –  Hubert Kario Oct 8 '12 at 21:40
    
Yes, every new form needs to be signed. It's not clear to me why this would make verification more difficult. –  David Wachtfogel Oct 9 '12 at 10:18
    
Because if it was done using Include elements in ArchiveTimeStamp then verifier wouldn't have to be modified (it's standard usage). But with Reference elements it has to preserve current verification context (time and verified certificates) to verify the XML document in Reference. I still have to think about it a bit, but it looks like I'll use your idea. It will abuse the standard but won't create non conformant implementation. –  Hubert Kario Oct 9 '12 at 10:27
add comment

This side-steps your question, but you might want to use the Evidence Record Syntax to do this kind of job, instead of XAdES-A. ERS includes the use of hash trees to allow sharing a given time stamp between multiple documents; and, thanks to "reduced hash trees", verification can be performed without knowing the whole set of documents.

share|improve this answer
    
That would probably be a good solution if we didn't have to use XML. –  Hubert Kario Oct 9 '12 at 10:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.