W3C home > Mailing lists > Public > public-xmlsec@w3.org > April 2010

RE: Sorting of DOM input to c14n 2.0

From: Scott Cantor <cantor.2@osu.edu>
Date: Tue, 13 Apr 2010 13:56:18 -0400
To: "'Pratik Datta'" <pratik.datta@oracle.com>, <public-xmlsec@w3.org>
Message-ID: <008c01cadb32$9e6a1300$db3e3900$@2@osu.edu>
> One of the important goals of C14N 2.0 is performance, even in DOM. And
> that I made sure that we don't traverse any of the nodes that we don't
> to. Say you are only signing 10% of the document, it would be very
> inefficient if you need to traverse the whole document just to sign a
> part of it.

Sure. But some use cases aren't like that and could be generally as
efficient by avoiding the sort. I'm just suggesting that the processing
rules be written without regard for *how* the order is determined, merely
that it is. The pseudocode can include the explicit note about it (possibly
including the algorithm).

Thanks for outlining the algorithm. On the call I thought you were talking
about something more efficient or simpler than that one (meaning you didn't
have to traverse back down the tree after you look for the ancestors).

-- Scott
Received on Tuesday, 13 April 2010 17:56:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:55:13 UTC