Author: spouliot
Date: 2006-12-11 15:35:58 -0500 (Mon, 11 Dec 2006)
New Revision: 69359

Modified:
   trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
   trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/PKCS8.cs
Log:
2006-12-11  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * PKCS8.cs: Normalize the private key X integer, not it's ASN.1
        container, to 20 bytes.



Modified: trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog  
2006-12-11 20:13:42 UTC (rev 69358)
+++ trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog  
2006-12-11 20:35:58 UTC (rev 69359)
@@ -1,3 +1,8 @@
+2006-12-11  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * PKCS8.cs: Normalize the private key X integer, not it's ASN.1
+       container, to 20 bytes.
+
 2006-10-04  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * PKCS1.cs: Remove compatibility block where all padding wasn't 

Modified: trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/PKCS8.cs
===================================================================
--- trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/PKCS8.cs   
2006-12-11 20:13:42 UTC (rev 69358)
+++ trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/PKCS8.cs   
2006-12-11 20:35:58 UTC (rev 69359)
@@ -334,7 +334,7 @@
                                        throw new CryptographicException 
("invalid private key format");
 
                                // X is ALWAYS 20 bytes (no matter if the key 
length is 512 or 1024 bits)
-                               dsaParameters.X = Normalize (privateKey, 20);
+                               dsaParameters.X = Normalize (pvk.Value, 20);
                                DSA dsa = DSA.Create ();
                                dsa.ImportParameters (dsaParameters);
                                return dsa;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to