In short, XMLSec is a C library that supports XML Signature, XML Encryption, Canonical XML, and Exclusive Canonical XML.
Homepage: http://www.aleksey.com/xmlsec/