Re: RSA.Create() - performance issues
- From: "Kim Hellan" <someone@xxxxxxxxxxx>
- Date: Wed, 12 Apr 2006 09:58:50 +0200
Hi,
The problem exists only in framework 1.1 or so I'm told.
In 2.0 MS have changed the functionality, so that a key is only created when
actually needed.
Maybe you are running 2.0 and that's why you don't see it.
Using RSACryptoServiceProvider doesn't change anything.
I have tried RSACryptoServiceProvider object where I specify the keysize to
be only 512 and that help a little bit, but there are still major
performance problems.
Regards,
Kim
"Zemp Dominik" <zemp.dominik@xxxxxxxxxxxxxxxxxxx> skrev i en meddelelse
news:534C2140-3D14-4376-B11A-94EB964D84A1@xxxxxxxxxxxxxxxx
Hi
I've use also the RSA.Create() method in my XML signing application, but I
haven't a performance issue (Anyhow I did not determine that up to now).
You can try to use the RSACryptoServiceProvider. Perhaps this helps you.
// Create an RSA crypto service provider from the embedded
// XML document resource (the public key).
RSACryptoServiceProvider csp = new RSACryptoServiceProvider();
csp.FromXmlString(xmlkey);
Dominik
"Kim Hellan" wrote:
I doing something like this in code:
RSA myKey = RSA.Create();
myKey.FromXmlString(....);
Apparently RSA.Create() always creates a keypair which has a huge impact
on
the performance of my assembly, about 10 times as slow with this one line
included.
Is there really no way to just create an empty RSA object when you know,
that you will always load a key anyway?
Thanks,
Kim
.
- References:
- RSA.Create() - performance issues
- From: Kim Hellan
- RSA.Create() - performance issues
- Prev by Date: Re: Smart Cards MY certificate store and Windows Forms
- Next by Date: Re: Why is Thread.CurrentPrincipal.Identity.Name empty?
- Previous by thread: RSA.Create() - performance issues
- Next by thread: Accessing a network share from a IE hosted .NET control
- Index(es):
Relevant Pages
|