* CryptoConvert.cs: Fix HMAC to respect start index inside an array.
Patch by Kazuki Oikawa.
svn path=/trunk/mcs/; revision=101297
+2008-04-21 Sebastien Pouliot <sebastien@ximian.com>
+
+ * CryptoConvert.cs: Fix HMAC to respect start index inside an array.
+ Patch by Kazuki Oikawa.
+
2008-03-13 Sebastien Pouliot <sebastien@ximian.com>
* CryptoConvert.cs: Re-order exception handling to report the most
// 4. if data is still present fill the "block" with the remainder
blockCount = cb - n;
if (blockCount > 0)
- Buffer.BlockCopy (rgb, n, block, 0, blockCount);
+ Buffer.BlockCopy (rgb, n + ib, block, 0, blockCount);
}
}