Discuss this help topic in SecureBlackbox Forum

XML: Use transforms when preparing data for signing

Each ds:Reference element may include an ordered list of ds:Transform elements, these describe how the signer obtained the data object that was digested. Transforms can include operations such as canonicalization, encoding/decoding, XPath and etc. The output of each Transform serves as input to the next Transform. The input to the first Transform is the result of dereferencing the URI attribute of the ds:Reference element. The output from the last Transform is the input for the DigestMethod algorithm.

To add the transform to the Reference:

  1. select an instance of TElXMLReference class and get the instance of TElXMLTransformChain using TransformChain property;
  2. create one or more instances of transform classes and add those instances to the chain using Add() or Insert() method of TElXMLTransformChain class;

Note: When transforms are applied the signer would not sign the native (original, referenced) document, but the resulting (transformed) document.

How To articles about XML signing (XMLDSig and XAdES)

Discuss this help topic in SecureBlackbox Forum