Author: spouliot
Date: 2006-06-15 15:18:08 -0400 (Thu, 15 Jun 2006)
New Revision: 61766
Modified:
trunk/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog
trunk/mcs/class/corlib/Mono.Security.Cryptography/CryptoTools.cs
Log:
2006-06-15 Sebastien Pouliot <[EMAIL PROTECTED]>
* CryptoTools.cs: Fix offset in block processor. This fix the HMAC
algorithms when large buffer where used (with multiple calls to
TransformBlock).
Modified: trunk/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog 2006-06-15
19:15:17 UTC (rev 61765)
+++ trunk/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog 2006-06-15
19:18:08 UTC (rev 61766)
@@ -1,3 +1,9 @@
+2006-06-15 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * CryptoTools.cs: Fix offset in block processor. This fix the HMAC
+ algorithms when large buffer where used (with multiple calls to
+ TransformBlock).
+
2005-11-23 Sebastien Pouliot <[EMAIL PROTECTED]>
* SymmetricTransform.cs: Virtualized some methods (like Dispose). Fix
Modified: trunk/mcs/class/corlib/Mono.Security.Cryptography/CryptoTools.cs
===================================================================
--- trunk/mcs/class/corlib/Mono.Security.Cryptography/CryptoTools.cs
2006-06-15 19:15:17 UTC (rev 61765)
+++ trunk/mcs/class/corlib/Mono.Security.Cryptography/CryptoTools.cs
2006-06-15 19:18:08 UTC (rev 61766)
@@ -126,7 +126,7 @@
// 3. transform any other full block in
specified buffer
int b = (int) ((cb - n) / blockSize);
for (int i=0; i < b; i++) {
- transform.TransformBlock (rgb, n,
blockSize, block, 0);
+ transform.TransformBlock (rgb, n + ib,
blockSize, block, 0);
n += blockSize;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches