Examples xml.Signature usage examples. Create a detached signature using a HMAC keyVerify a detached signature using a HMAC keyCreate an enveloping signature using a DSA keyVerify an enveloping signature using a X509 certificateCreate an enveloped signature using a RSA keyVerify an enveloped signature using a RSA key