* DSA.cs: Really fixed case where DSAParameters.Counter is 0.
svn path=/trunk/mcs/; revision=39809
+2005-01-30 Sebastien Pouliot <sebastien@ximian.com>
+
+ * DSA.cs: Really fixed case where DSAParameters.Counter is 0.
+
2005-01-21 Sebastien Pouliot <sebastien@ximian.com>
* DSA.cs: Handle the case where DSAParameters.Counter is 0.
// the number of bytes is important (no matter == 0x00)
byte[] inArr = BitConverterLE.GetBytes (dsaParams.Counter);
int l = inArr.Length;
- while (inArr[l-1] == 0x00)
- l--;
if (l > 0) {
+ while (inArr[l-1] == 0x00)
+ l--;
byte[] c = new byte [l];
Buffer.BlockCopy (inArr, 0, c, 0, l);
sb.Append (Convert.ToBase64String (c));