Extend DH ASN1 method to support public key encode/decode and parameter