[Mono-bugs] [Bug 81558][Nor] New - DSAManaged.ImportParameters throws an exception when importing a private key

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon May 7 18:32:29 EDT 2007


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 tausq at debian.org.

http://bugzilla.ximian.com/show_bug.cgi?id=81558

--- shadow/81558	2007-05-07 18:32:29.000000000 -0400
+++ shadow/81558.tmp.8332	2007-05-07 18:32:29.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 81558
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: ubuntu
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.Security
+AssignedTo: sebastien at ximian.com                            
+ReportedBy: tausq at debian.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DSAManaged.ImportParameters throws an exception when importing a private key
+
+Description of Problem:
+DSAManaged.ImportParameters rejects keys with parameters.Y == null, so if
+you try to import a private-only key, there will be an exception.
+
+Steps to reproduce the problem:
+1. Compile and run attached test program
+
+Actual Results:
+Unhandled Exception: System.Security.Cryptography.CryptographicException:
+Error occured during a cryptographic operation.
+  at Mono.Security.Cryptography.DSAManaged.ImportParameters (DSAParameters
+parameters) [0x00000]
+  at System.Security.Cryptography.DSACryptoServiceProvider.ImportParameters
+(DSAParameters parameters) [0x00000]
+  at Foo.Main () [0x00000]
+
+
+Expected Results:
+DSAManaged.ImportParameters should only reject the parameters if both X and
+Y are null. With MS.NET, the runtime will actually automatically calculate
+Y if it is missing in the import.
+
+How often does this happen?
+Always reproducible.
+
+Additional Information:


More information about the mono-bugs mailing list