diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2008-04-21 17:37:57 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2008-04-21 17:37:57 +0400 |
commit | ced514959c3646f73f32a0bc4292ec1fb5463b5f (patch) | |
tree | 12bcd50c98fee538becee107e1f527ffebf17097 /mcs/class/corlib/Mono.Security.Cryptography | |
parent | 0577a343860ce39aa559be40edf753c3dea1de99 (diff) |
2008-04-21 Sebastien Pouliot <sebastien@ximian.com>
* CryptoConvert.cs: Fix HMAC to respect start index inside an array.
Patch by Kazuki Oikawa.
svn path=/trunk/mcs/; revision=101294
Diffstat (limited to 'mcs/class/corlib/Mono.Security.Cryptography')
-rw-r--r-- | mcs/class/corlib/Mono.Security.Cryptography/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/corlib/Mono.Security.Cryptography/CryptoTools.cs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog b/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog index 96ff23739af..161f440f716 100644 --- a/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog +++ b/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog @@ -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 diff --git a/mcs/class/corlib/Mono.Security.Cryptography/CryptoTools.cs b/mcs/class/corlib/Mono.Security.Cryptography/CryptoTools.cs index 95b5ea70672..444e15df7d0 100644 --- a/mcs/class/corlib/Mono.Security.Cryptography/CryptoTools.cs +++ b/mcs/class/corlib/Mono.Security.Cryptography/CryptoTools.cs @@ -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); } } |