Creating a DSACryptoServiceProvider without generating new Keys

From: Mike Grasso (mgrasso2_at_tampabay.rr.com)
Date: 06/24/03


Date: 24 Jun 2003 13:44:28 -0700


Hey all,

If you construct a DSACryptoServiceProvider(), it will generate a new
pair of keys. That's great and all , but I already have my keys.
I've played around with the CspParameters, but that just deals with
the MachineKeyStore. This app will be sitting on a client who will
only have my public key. I'd like to load the key using
FromXmlString(). My problem is that when I construct the
DSACryptoServiceProvider, it takes over 8 seconds. This is way too
long, and I don't need it. I guess I could pop up a copy of War and
Peace for the users to read, but I'd like to be able to cut out the
unnecessary key generation.