Examples.

XML Security Library Examples.
Signing a template file.
sign1.c
sign1-tmpl.xml
sign1-res.xml
Signing a dynamicaly created template.
sign2.c
sign2-doc.xml
sign2-res.xml
Signing with X509 certificate.
sign3.c
sign3-doc.xml
sign3-res.xml
Verifying a signature with a single key.
verify1.c
Verifying a signature with keys manager.
verify2.c
Verifying a signature with X509 certificates.
verify3.c
Verifying a signature with additional restrictions.
verify4.c
verify4-tmpl.xml
verify4-res.xml
verify4-bad-tmpl.xml
verify4-bad-res.xml
Encrypting data with a template file.
encrypt1.c
encrypt1-tmpl.xml
encrypt1-res.xml
Encrypting data with a dynamicaly created template.
encrypt2.c
encrypt2-doc.xml
encrypt2-res.xml
Encrypting data with a session key.
encrypt3.c
encrypt3-doc.xml
encrypt3-res.xml
Decrypting data with a single key.
decrypt1.c
Decrypting data with keys manager.
decrypt2.c
Writing a custom keys manager.
decrypt3.c

XML Security Library Examples.

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