[Mono-bugs] [Bug 55445][Wis] New - RSACryptoServiceProvider.ExportParameters method takes 35 seconds
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 10 Mar 2004 18:52:40 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by jluciani@novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=55445
--- shadow/55445 2004-03-10 18:52:40.000000000 -0500
+++ shadow/55445.tmp.25403 2004-03-10 18:52:40.000000000 -0500
@@ -0,0 +1,82 @@
+Bug#: 55445
+Product: Mono: Runtime
+Version: unspecified
+OS: SUSE 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: jluciani@novell.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: RSACryptoServiceProvider.ExportParameters method takes 35 seconds
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+Method ExportParameters() of class RSACryptoServiceProvider takes 35
+seconds to complete when executed to obtain the RSA public key. Processor
+is 1.8GHz.
+
+Steps to reproduce the problem:
+1. Compile the following application:
+
+using System;
+using System.Security.Cryptography;
+
+namespace RsaExportTest
+{
+ class Test
+ {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [STAThread]
+ static void Main(string[] args)
+ {
+ Console.WriteLine("RsaExportTest");
+
+ // Create instance of RSACryptoServiceProvider; this generates
+public and private key data.
+ Console.WriteLine("Creating RSA Algorithm");
+ RSACryptoServiceProvider rsaAlg = new RSACryptoServiceProvider
+(2048); // Key length = 2048
+ Console.WriteLine("Done creating RSA Algorithm");
+
+ // Export the RSA Public Key from the given RSA algorithm
+ Console.WriteLine("Exporting public key");
+ RSAParameters rsaKeyInfo = rsaAlg.ExportParameters(false);
+ Console.WriteLine("Done exporting public key");
+
+ Console.WriteLine("Press Enter to exit...");
+ Console.ReadLine();
+ }
+ }
+}
+
+2. Run the application.
+
+Actual Results:
+
+Notice the time it takes between the output of line "Exporting public
+key" and the output of line "Done exporting public key".
+
+Expected Results:
+
+There should not be much of a pause between the output of both lines.
+
+
+How often does this happen?
+
+All of the time.
+
+
+Additional Information:
+
+Running on a build of mono that is about a week old.