# XML Security Library Reference Manual

Aleksey
Sanin

    	    aleksey@aleksey.com

2002-2003
Aleksey Sanin

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided also that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.

This manual documents the interfaces of the xmlsec library and has some short notes to help get you up to speed with using the library.

## XML Security Library Tutorial

### Overview.

XML Security Library provides support for XML Digital Signature and XML Encryption. It is based on LibXML/LibXSLT and can use practicaly any crypto library (currently there is "out of the box" support for OpenSSL, MSCrypto, GnuTLS, GCrypt and NSS).

### XML Security Library Structure.

In order to provide the an ability to use different crypto engines, the XML Security Library is splitted in two parts: core library (xmlsec) and crypto library (xmlsec-openssl, xmlsec-mscrypt, xmlsec-gnutls, xmlsec-gcrypt, xmlsec-nss, ...).

#### The library structure and dependencies.

The core library has no dependency on any crypto library and provides implementation of all the engines as well as support for all the non crypto transforms (xml parser, c14n transforms, xpath and xslt transforms,...). The XML Security Crypto library provides implementations for crypto transforms, crypto keys data and key data stores. Application is linked with particular XML Security Crypto library (or even libraries), but the actual application code might be general enough so switching crypto engine would be a matter of changing several #include directives.

&chapter-compiling-and-linking; &chapter-init-and-shutdown; &chapter-sign-and-encrypt; &chapter-creating-templates; &chapter-verify-and-decrypt; &chapter-using-keys; &chapter-using-keysmngr; &chapter-using-x509-certs; &chapter-using-transforms; &chapter-using-contexts; &chapter-new-crypto; &chapter-examples;

### APPENDIX A. XML Security Library Signature Klasses.

#### XML Security Library Signature Klasses.

### APPENDIX B. XML Security Library Encryption Klasses.

#### XML Security Library Encryption Klasses.

## XML Security Library API Reference.

### XML Security Core Library API Reference.

This section contains the API reference for xmlsec. All the public interfaces are documented here. This reference guide is build by extracting comments from the code sources.

&xmlsec-app; &xmlsec-base64; &xmlsec-bn; &xmlsec-buffer; &xmlsec-dl; &xmlsec-errors; &xmlsec-io; &xmlsec-keyinfo; &xmlsec-keysdata; &xmlsec-keys; &xmlsec-keysmngr; &xmlsec-list; &xmlsec-membuf; &xmlsec-nodeset; &xmlsec-parser; &xmlsec-templates; &xmlsec-transforms; &xmlsec-version; &xmlsec-xmldsig; &xmlsec-xmlenc; &xmlsec-xmlsec; &xmlsec-xmltree; &xmlsec-x509;

### XML Security Library for OpenSLL API Reference.

This section contains the API reference for xmlsec-openssl. All the public interfaces are documented here. This reference guide is build by extracting comments from the code sources.

&xmlsec-openssl-app; &xmlsec-openssl-bn; &xmlsec-openssl-crypto; &xmlsec-openssl-evp; &xmlsec-openssl-x509;

### XML Security Library for GnuTLS API Reference.

This section contains the API reference for xmlsec-gnutls. All the public interfaces are documented here. This reference guide is build by extracting comments from the code sources.

&xmlsec-gnutls-app; &xmlsec-gnutls-crypto;

### XML Security Library for GCrypt API Reference.

This section contains the API reference for xmlsec-gcrypt. All the public interfaces are documented here. This reference guide is build by extracting comments from the code sources.

&xmlsec-gcrypt-app; &xmlsec-gcrypt-crypto;

### XML Security Library for NSS API Reference.

This section contains the API reference for xmlsec-nss. All the public interfaces are documented here. This reference guide is build by extracting comments from the code sources.

&xmlsec-nss-app; &xmlsec-nss-bignum; &xmlsec-nss-crypto; &xmlsec-nss-keysstore; &xmlsec-nss-pkikeys; &xmlsec-nss-x509;

### XML Security Library for MSCrypto API Reference.

This section contains the API reference for xmlsec-mscrypto. All the public interfaces are documented here. This reference guide is build by extracting comments from the code sources.

&xmlsec-mscrypto-app; &xmlsec-mscrypto-certkeys; &xmlsec-mscrypto-crypto; &xmlsec-mscrypto-keysstore; &xmlsec-mscrypto-x509;

### XML Security Library Reference Index

&xmlsec-index;