Separate DSA functionality from ASN.1 encoding.