SignedXml is a Ruby implementation of XML Signatures.