2004-04-08 Bernie Solomon <bernard@ugsolutions.com>
authorBernie Solomon <bernard@mono-cvs.ximian.com>
Thu, 8 Apr 2004 22:06:45 +0000 (22:06 -0000)
committerBernie Solomon <bernard@mono-cvs.ximian.com>
Thu, 8 Apr 2004 22:06:45 +0000 (22:06 -0000)
* DSA.cs: Use Mono.Security.BitConverterLE

svn path=/trunk/mcs/; revision=25241

mcs/class/corlib/System.Security.Cryptography/ChangeLog
mcs/class/corlib/System.Security.Cryptography/DSA.cs

index 47f3755c464e329fb864c19a926a0a05c7ae263f..e937ce4d6923cb49884ca0f8483c774d68781916 100644 (file)
@@ -1,3 +1,7 @@
+2004-04-08  Bernie Solomon  <bernard@ugsolutions.com>
+
+       * DSA.cs: Use Mono.Security.BitConverterLE
+
 2004-04-05  Bernie Solomon  <bernard@ugsolutions.com>
 
        * DESCryptoServiceProvider.cs: Use BitConverter.IsLittleEndian
index f42c1c82b30e1708a5ea522cf0d5348e0e42cdd6..fc92e3071ca0210d34ff1309cd4601e47e237b7e 100755 (executable)
@@ -12,6 +12,7 @@ using System;
 using System.Text;
 
 using Mono.Xml;
+using Mono.Security;
 
 // References:
 // a.  FIPS PUB 186-2: Digital Signature Standard (DSS) 
@@ -80,7 +81,7 @@ namespace System.Security.Cryptography {
                                if (counter != null) {
                                        byte[] counter4b = new byte [4]; // always 4 bytes
                                        Array.Copy (counter, 0, counter4b, 0, counter.Length);
-                                       dsaParams.Counter = BitConverter.ToInt32 (counter4b, 0);
+                                       dsaParams.Counter = BitConverterLE.ToInt32 (counter4b, 0);
                                }
                                ImportParameters (dsaParams);
                        }
@@ -130,7 +131,7 @@ namespace System.Security.Cryptography {
 
                                        sb.Append ("<PgenCounter>");
                                        // the number of bytes is important (no matter == 0x00)
-                                       byte[] inArr = BitConverter.GetBytes (dsaParams.Counter);
+                                       byte[] inArr = BitConverterLE.GetBytes (dsaParams.Counter);
                                        int l = inArr.Length;
                                        while (inArr[l-1] == 0x00)
                                                l--;