Make dh_key_info encoder and decoder symmetric