Search code examples
xmlperformancedigital-signaturexml-signatureelectronic-signature

Performance of XML digital signature: enveloper vs enveloping vs detached


XML-DSig describes 3 positions where the signature of an XML document can be placed relatively to the XML document : the signature can be detached, enveloping, enveloped

What are the implications in terms of performance of these three options?


Solution

  • Detached will be a bit more efficient, but the difference is minimal (of course it depends on document size - with a 100Mb document the difference would be larger, than with small XML blocks).