Hello,

  I am currently trying to generate a RSA key pair for an app I am working
on.  The issue is that using RSACryptoServiceProvider (which internally uses
RSAManaged) is horribly slow.  Generating even a small 512 bit key pair
takes ~7 seconds on device.  1024 bit takes ~15s.  The big issue is that
2048 bit takes minutes.  This seems be a problem with how RSAManaged is
implemented specifically how BigInteger is used.  I realize that generating
a RSA key pair is an expensive operation, however, the 2048 bit case is not
usable.

  Does anyone know of any Mono bindings to native crypto library?

  I have tried to use MonoTouch.Security.SecKey.GenerateKeyPair, however, it
always returns with a SecStatusCode.Unimplemented.  There is a good
possibility that I am using it incorrectly as well, so if anyone has an
example it would be much appreciated.

Thanks!


--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/RSA-key-pair-generation-tp3766685p3766685.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to