2008-04-21 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Mon, 21 Apr 2008 13:37:57 +0000 (13:37 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Mon, 21 Apr 2008 13:37:57 +0000 (13:37 -0000)
* CryptoConvert.cs: Fix HMAC to respect start index inside an array.
Patch by Kazuki Oikawa.

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

mcs/class/corlib/Mono.Security.Cryptography/ChangeLog
mcs/class/corlib/Mono.Security.Cryptography/CryptoTools.cs

index 96ff23739af5751a0ff8698fd5a1ce207340b311..161f440f716fcfd92e5d1dd9a84be68ea80d08ea 100644 (file)
@@ -1,3 +1,8 @@
+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
index 95b5ea70672c9ab453dc604aa4e52958106d50e6..444e15df7d094715f9c096d1200d221bf35cb882 100644 (file)
@@ -133,7 +133,7 @@ namespace Mono.Security.Cryptography {
                                // 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);
                        }
                }