Verifing and decrypting documents.

Overview.
Verifying a signed document
Decrypting an encrypted document

Overview.

Since the template is just an XML file, it might be created in advance and saved in a file. It's also possible for application to create templates without using XML Security Library functions. Also in some cases template should be inserted in the signed or encrypted data (for example, if you want to create an enveloped or enveloping signature).

Signature verification and data decryption do not require template because all the necessary information is provided in the signed or encrypted document.

Figure 5. The verification or decryption processing model.

The verification or decryption processing model.