[Mono-bugs] [Bug 76627][Min] New - PKCS12 doesn't accept multiple keys of the same size/algorithm

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Nov 3 12:04:06 EST 2005


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 jnmiller at cryptofreak.org.

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

--- shadow/76627	2005-11-03 12:04:06.000000000 -0500
+++ shadow/76627.tmp.17354	2005-11-03 12:04:06.000000000 -0500
@@ -0,0 +1,34 @@
+Bug#: 76627
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 001 One hour
+Priority: Minor
+Component: Mono.Security
+AssignedTo: sebastien at ximian.com                            
+ReportedBy: jnmiller at cryptofreak.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: PKCS12 doesn't accept multiple keys of the same size/algorithm
+
+Description of Problem:
+
+PKCS12.CompareAsymmetricAlgorithm() compares algorithm type and size, but
+not key content.  This causes AddKeyBag and AddPkcs8ShroudedKeyBag to
+report different keys (that have the same size/algorithm) as duplicates.
+
+Brief Test Case:
+
+   RSAManaged key1 = new RSAManaged(512);
+   RSAManaged key2 = new RSAManaged(512);
+   PKCS12 bag = new PKCS12();
+
+   bag.AddPkcs8ShroudedKeyBag(key1);
+   bag.AddPkcs8ShroudedKeyBag(key2);
+
+   Assert.AreEqual(bag.Keys.Count, 2);


More information about the mono-bugs mailing list