Create DSA key from XML string

From: Harold Putman (putmanh@yahoo.com)
Date: 03/31/03


From: "Harold Putman" <putmanh@yahoo.com>
Date: Mon, 31 Mar 2003 10:51:20 -0500


If I export a DSA public/private key information as an XML string, what is
the best way to recreate the DSA key later.
I am doing this:
            key = DSA.Create();
            key.FromXmlString(keyinfo);
But the Create() call takes a long time, as if it is generating a new
public/private keypair. As far as I can tell, I don't want or need the newly
generated keypair. Is there some more effecient way to create a DSA keypair
from a saved XML representation?

Thanks,
Harold Putman



Relevant Pages

  • Re: Create DSA key from XML string
    ... RSACryptoServiceProvider rsa = new RSACryptoServiceProvider; ... > If I export a DSA public/private key information as an XML string, ... > the best way to recreate the DSA key later. ...
    (microsoft.public.dotnet.security)
  • Re: Create DSA key from XML string
    ... AFAIK both DSA and RSA always generate new keypairs.Which is a BAD THING ... container using the CspParameters. ... CspParameters csp = new CspParameters; ... >> generated keypair. ...
    (microsoft.public.dotnet.security)
  • Re: Create DSA key from XML string
    ... DSACryptoServiceProvider dsa = new DSACryptoServiceProvider; ... constructor that takes an XML string as a parameter. ... >> generated keypair. ...
    (microsoft.public.dotnet.security)