+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
using System.Text;
using Mono.Xml;
+using Mono.Security;
// References:
// a. FIPS PUB 186-2: Digital Signature Standard (DSS)
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);
}
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--;