XML Security Library

LibXML2
LibXSLT
OpenSSL

XML Security Library Examples.

Table of Contents
sign1.c -- Signing a template file.
sign2.c -- Signing a file with a dynamicaly created template.
sign3.c -- Signing a file with a dynamicaly created template and an X509 certificate.
verify1.c -- Verifying a file using a single key.
verify2.c -- Verifying a file using keys manager.
verify3.c -- Verifying a file signed with X509 certificate
encrypt1.c -- Encrypting data using a template file.
encrypt2.c -- Encrypting XML file with a dynamicaly created template.
encrypt3.c -- Encrypting XML file with a session key and dynamicaly created template.
decrypt1.c -- Decrypting an encrypted file using a single key.
decrypt2.c -- Decrypting an encrypted file using keys manager.
decrypt3.c -- Decrypting an encrypted file using a custom keys manager.
sign1-tmpl.xml -- Simple signature template file for sign1 example.
sign1-res.xml -- Signed file (sign1 example).
sign2-doc.xml -- Original XML doc file for sign2 example.
sign2-res.xml -- Signed XML doc file (sign2 example).
sign3-doc.xml -- Original XML doc file for sign3 example.
sign3-res.xml -- Signed XML doc file (sign3 example).
encrypt1-tmpl.xml -- Simple encryption template file for encrypt1 example.
encrypt1-res.xml -- Encrypted binary data (encrypt1 example).
encrypt2-doc.xml -- Original XML doc file before encryption (encrypt2 example).
encrypt2-res.xml -- Encrypted XML file (encrypt2 example).
encrypt3-doc.xml -- Original XML doc file before encryption (encrypt3 example).
encrypt3-res.xml -- XML doc file encrypted with a session DES key (encrypt3 example).

This section contains several examples of using XML Security Library to sign, veiryf, encrypt or decrypt XML documents.



Aleksey Sanin