Author: spouliot
Date: 2006-06-16 09:26:41 -0400 (Fri, 16 Jun 2006)
New Revision: 61798
Modified:
branches/mono-1-1-13/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog
branches/mono-1-1-13/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:
branches/mono-1-1-13/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog
===================================================================
--- branches/mono-1-1-13/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog
2006-06-16 13:25:14 UTC (rev 61797)
+++ branches/mono-1-1-13/mcs/class/corlib/Mono.Security.Cryptography/ChangeLog
2006-06-16 13:26:41 UTC (rev 61798)
@@ -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:
branches/mono-1-1-13/mcs/class/corlib/Mono.Security.Cryptography/CryptoTools.cs
===================================================================
---
branches/mono-1-1-13/mcs/class/corlib/Mono.Security.Cryptography/CryptoTools.cs
2006-06-16 13:25:14 UTC (rev 61797)
+++
branches/mono-1-1-13/mcs/class/corlib/Mono.Security.Cryptography/CryptoTools.cs
2006-06-16 13:26:41 UTC (rev 61798)
@@ -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