Examples xml.Signature usage examples. Create a detached signature using a HMAC key Verify a detached signature using a HMAC key Create an enveloping signature using a DSA key Verify an enveloping signature using a X509 certificate Create an enveloped signature using a RSA key Verify an enveloped signature using a RSA key