generalized method from DomainParameterSetEcdh to return an
AlgorithmParameterSpec for any DomainParameterSet. This can then be used
e.g. for key generation